Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WalletConnect with Wrapper xHOPR -> wxHOPR bug (transferAndCall func) #5

Open
mjadach-iv opened this issue Mar 29, 2024 · 1 comment
Assignees

Comments

@mjadach-iv
Copy link
Collaborator

No description provided.

@mjadach-iv mjadach-iv transferred this issue from hoprnet/hopr-admin May 13, 2024
@QYuQianchen QYuQianchen self-assigned this Feb 21, 2025
@QYuQianchen
Copy link
Contributor

When a Safe wraps xHOPR to wxHOPR, it may fail due to lack of a callback handler. This issue has been reported to Safe and suggests safe-global/safe-smart-account#655 yet Safe team decides not to take any further actions. To support Safes to use our wrapper, an additional transaction must be done prior to the wrapping:

  1. Check if the handler has been set on the registry . Call:
    • to: 0x1820a4b7618bde71dce8cdc73aab6c95905fad24
    • function: getInterfaceImplementer(address,bytes32)
    • params:
      • _addr (address): <safe_address>
      • _interfaceHash (bytes32): 0xb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b
        If returning 0x0000000000000000000000000000000000000000 , it means that the handler hasn't been set, step 2 must be executed. Otherwise, skip step 2 and the Safe should be able to wrap xHOPR->wxHOPR
  2. Add handler to the aforementioned registry. Note that the parameters are specifically for Gnosis chain. Send:
    • from: <safe_address>
    • to: 0x1820a4b7618bde71dce8cdc73aab6c95905fad24
    • function: setInterfaceImplementer(address,bytes32,address)
    • params:
      • _addr (address): <safe_address>
      • _interfaceHash (bytes32): 0xb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b
      • _implementer (address): 0xe530e2f9decf24d7d42f011f54f1e9f8001e7619

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants