'Web3Wallet.generateApprovedNamespaces()' is ambiguous and seems working properly #3577
Unanswered
mahdit8
asked this question in
Developer Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When calling
So in this example I tried to include all optional methods from dApp to supporting methods to see if can resolve error. And full image of required spaces:Web3Wallet.generateApprovedNamespaces()
Getting this error:
All required namespaces must be approved: not all methods are approved
These are my detailed name spaces from wallet and proposal: (https://galxe.com/notum/campaign/GC4drURv3o)
So I feel it's ambiguous how this method is working, is it skip not matching in required and try to find first matching name space on optional filed and try to generate supported
sessionNamespaces
?Main problem is when want to approve a proposal from a dApp, sometimes they put required name space empty but fill optional. Sometimes pass wrong value on required like this name space
eip155:0
, but they fill correct things on optional.First I have question for more clarifications, in addition have suggestion to make required name space really required and mandatory and make variable act like it's naming, otherwise not sure why required filed can be empty? May need to change it's naming.
Beta Was this translation helpful? Give feedback.
All reactions