diff --git a/src/lib/constructTx.ts b/src/lib/constructTx.ts index 42bb3fc..669f100 100644 --- a/src/lib/constructTx.ts +++ b/src/lib/constructTx.ts @@ -357,12 +357,16 @@ export async function signAndBroadcastEVM( multiSigSmartAccount.getEntryPoint().address, ); - console.log(uoHash); // this is user operation hash, not tx hash + console.log(uoHash); // this is user operation hash, means it was succesfully sent but not yet included in transaction. All went well, not tx hash - const txHash = await smartAccountClient.waitForUserOperationTransaction({ - hash: uoHash, - }); - return txHash; + const txHash = await smartAccountClient + .waitForUserOperationTransaction({ + hash: uoHash, + }) + .catch((e) => { + console.log(e); + }); + return txHash ?? uoHash; } catch (error) { console.log(error); throw error; diff --git a/src/screens/Home/Home.tsx b/src/screens/Home/Home.tsx index c2e5cd0..0f31ef9 100644 --- a/src/screens/Home/Home.tsx +++ b/src/screens/Home/Home.tsx @@ -582,7 +582,8 @@ function Home({ navigation }: Props) { ); setTxid(ttxid); } catch (error) { - displayMessage('error', t('home:err_tx_failed')); + // @ts-ignore + displayMessage('error', error.message ?? 'home:err_tx_failed'); console.log(error); } finally { setSubmittingTransaction(false);