You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A bug in the MetaMask confirmation popup when sending a transaction to a contract.
Some function signatures will never parse and show up as contract interaction, even though their signatures are known by 4byte and eth-method-registry.
This has been happening for weeks/months and thus is not just a temporary outage or loading error.
Some other functions show up fine, so it is somewhat functional.
Go to Contract -> Write contract, and connect to Web3
Enter the 'withdrawToken' parameters (any address & number will do, you don't actually need to have a balance on the exchange)
Click the write button to get the MetaMask popup.
Reject the transaction after looking at the popup.
Expected behavior
I expect the function name to be displayed in the Metamask popup, for functions that have had their signatures registered. Just like it did in the past.
Screenshots (chrome left, firefox right)
Browser details (please complete the following information):
…s empty
Fixes#8835
In cases where the registry failed to load, and the sig is set to `{}` on this line: https://github.com/MetaMask/metamask-extension/blob/e85b162651e887d79bfd15469289abc2c6753cbc/ui/app/helpers/utils/transactions.util.js#L78 this proceeds to set the method prefix to `{}` in knownMethodData.
Additionally check if the method prefix object is empty to proceed call getMethodDataAsync again.
I could only reproduce by intentionally failing the method registry lookup and found this solution. I could not find an instance where the registry consistently failed to lookup even on slow/throttled/high latency networks.
…s empty (#8836)
Fixes#8835
In cases where the registry failed to load, and the sig is set to `{}` on this line: https://github.com/MetaMask/metamask-extension/blob/e85b162651e887d79bfd15469289abc2c6753cbc/ui/app/helpers/utils/transactions.util.js#L78 this proceeds to set the method prefix to `{}` in knownMethodData.
Additionally check if the method prefix object is empty to proceed call getMethodDataAsync again.
I could only reproduce by intentionally failing the method registry lookup and found this solution. I could not find an instance where the registry consistently failed to lookup even on slow/throttled/high latency networks.
Describe the bug
A bug in the MetaMask confirmation popup when sending a transaction to a contract.
Some function signatures will never parse and show up as
contract interaction
, even though their signatures are known by 4byte and eth-method-registry.This has been happening for weeks/months and thus is not just a temporary outage or loading error.
Some other functions show up fine, so it is somewhat functional.
Example
Sending this will show me
![interaction](https://user-images.githubusercontent.com/30391324/85082835-58d6af80-b1d0-11ea-8e83-910ef45a4fb8.png)
contract interaction
instead ofwithdraw Token
like it did a while ago.To Reproduce (REQUIRED)
Expected behavior
I expect the function name to be displayed in the Metamask popup, for functions that have had their signatures registered. Just like it did in the past.
Screenshots (chrome left, firefox right)
![popup](https://user-images.githubusercontent.com/30391324/85083938-9557da80-b1d3-11ea-9246-f64becc8d28f.png)
Browser details (please complete the following information):
Additional context (Error Messages, etc.)
It occasionally loads
sent ether
instead. Which might be a similar loading/parsing error.The text was updated successfully, but these errors were encountered: