0

I am using safe react template [link]: https://github.com/safe-global/safe-apps-sdk/tree/master/packages/cra-template-safe-app. I have a requirement where i need to get the transaction guard contract address associated with that safe inisde the safe app. How to get it?

1 Answer 1

0

You should use the getStorageAt from the StorageAccessible contract to get the guard address from the Safe's internal storage.

The guard address is stored at slot 0x4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c8

4
  • Can you please guide how to get it inside the react app? Its a Safe Contract internal function.
    – Dummy Mail
    Feb 22 at 7:20
  • If you check GenosisSafel2 Contract, link we don't have any function to get the guard address. @mikheevm
    – Dummy Mail
    Feb 22 at 9:05
  • My bad, haven't spotted that the method was internal, I've just updated my answer
    – mikheevm
    Feb 22 at 14:02
  • What should be the input of the parameters of offset and length? @mikheevm
    – Dummy Mail
    Feb 27 at 9:20

Your Answer

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

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