0

I'm building a Safe app where the users can execute transactions with their Safe Wallets. I use viem to trigger the transaction, it correctly prompts the user to execute the transaction and after the user signs it and the transaction is complete, my app resumes correctly the rest of the function call.

Now, my problem is when the user decides to execute the transaction later and clicks on "add to batch", that action closes the safe execution window but doesn't return anything, my function gets stuck waiting to be resolved.

enter image description here

I'm doing a simple viem contract transaction, but I have no idea what I should do in order to intercept the "batch" action when the users selects it, so that I could react accordingly in the app.

This is the code:

const { request } = await client.simulateContract({
  account,
  address,
  abi,
  args,
  functionName
});

const hash = await walletClient.writeContract(request);

Does anyone have any idea on this? Do I need to use the safe sdk to trigger the transactions in order to achieve this?

1 Answer 1

0

This is surprising that you are able to allow users to batch transactions for later as we have disabled this option to safe-app, as batch information is stored in the local storage.

Could you provide more details on how you were able to achieve this?

Thanks a lot in advance! 🙏 Best, Louis

1
  • Hey thanks for the reply, to be honest I haven't done anything related to this, it simply worked out of the box. I've also tested some other listed safe apps and they do seem to allow me to "add to batch" as well and also get stuck after clicking it. Commented Jul 30 at 14:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.