mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Resolve on 0x (#9048)
This commit is contained in:
parent
33430f6dea
commit
17e9d85401
@ -2190,7 +2190,8 @@ export function getContractMethodData (data = '') {
|
||||
const prefixedData = ethUtil.addHexPrefix(data)
|
||||
const fourBytePrefix = prefixedData.slice(0, 10)
|
||||
const { knownMethodData } = getState().metamask
|
||||
if (knownMethodData && knownMethodData[fourBytePrefix] && Object.keys(knownMethodData[fourBytePrefix]).length !== 0) {
|
||||
|
||||
if ((knownMethodData && knownMethodData[fourBytePrefix] && Object.keys(knownMethodData[fourBytePrefix]).length !== 0) || fourBytePrefix === '0x') {
|
||||
return Promise.resolve(knownMethodData[fourBytePrefix])
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user