Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Call getMethodDataAsync when knownMethodData[fourBytePrefix] object i…
…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.
- Loading branch information