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

Using safe multisig cannot sign the eip712 messages to complete or reject grants #129

Closed
Pabl0cks opened this issue Jul 12, 2024 · 2 comments
Assignees

Comments

@Pabl0cks
Copy link
Member

I can send the 50% transaction but then when it captures the tx hash and I try to sign the message to complete the grant, I get an "Error completing" or "Error rejecting" if it was the action I was doing.

This is the console errors I had when trying to complete:

Uncaught (in promise) SwitchChainError
    at W.switchChain (560-6c90a744a9b2c549.js:1026:7826)
    at async W.getProvider (560-6c90a744a9b2c549.js:1026:6585)
    at async Promise.all (index 0)
    at async W.getWalletClient (560-6c90a744a9b2c549.js:1026:6675)
    at async ta (8474-80fe7fbb67464fff.js:20:11396)
    at async n (8474-80fe7fbb67464fff.js:20:11744)Caused by: TypeError: Cannot set properties of undefined (setting 'defaultChain')
    at nm.onChainChanged (4817.433a57a23d6241f0.js:33:29553)
    at i.<anonymous> (4817.433a57a23d6241f0.js:33:28293)
    at i.emit (9097-1a60dea03350292a.js:1:82503)
    at nr.setDefaultChain (4817.433a57a23d6241f0.js:33:10503)
    at nr.handleSwitchChain (4817.433a57a23d6241f0.js:33:11777)
    at nr.request (4817.433a57a23d6241f0.js:33:10113)
    at nm.request (4817.433a57a23d6241f0.js:33:22760)
    at nj.request (4817.433a57a23d6241f0.js:33:31782)
    at W.switchChain (560-6c90a744a9b2c549.js:1026:7639)
    at async W.getProvider (560-6c90a744a9b2c549.js:1026:6585)
4938-addd67e57688a2ff.js:1 Object TypeError: Cannot set properties of undefined (setting 'defaultChain')
    at nm.onChainChanged (4817.433a57a23d6241f0.js:33:29553)
    at i.<anonymous> (4817.433a57a23d6241f0.js:33:28293)
    at i.emit (9097-1a60dea03350292a.js:1:82503)
    at nr.setDefaultChain (4817.433a57a23d6241f0.js:33:10503)
    at nm.onChainChanged (4817.433a57a23d6241f0.js:33:29460)
    at i.<anonymous> (4817.433a57a23d6241f0.js:33:27726)
    at i.emit (9097-1a60dea03350292a.js:1:82503)
    at iq.onSessionEventRequest (4817.433a57a23d6241f0.js:7:99774)
    at iq.processRequest (4817.433a57a23d6241f0.js:7:93280)
    at iq.processRequestsQueue (4817.433a57a23d6241f0.js:7:92614)
window.console.error @ 4938-addd67e57688a2ff.js:1
api/grants/7ABG3zfmbBiVJYsv37UG/review:1 
        
        
       Failed to load resource: the server responded with a status of 401 ()
api/grants/rvVEKZkm7kj9cL5zg6lC/review:1 
        
        
       Failed to load resource: the server responded with a status of 401 ()
@carletex
Copy link
Contributor

Were you able to sign-in into grants (signing a EIP-712 message) with the safe account?

But yes, it seems an issue with safe not being able to sign 712 message. SwitchChainError.

Let's debug this week @technophile-04

@technophile-04
Copy link
Member

Completed at #135

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

3 participants