Metamask Mishandles ENS ERC-721 Transfer, Submits Wrong Token ID #4092
Labels
Sev2-normal
An issue that may lead to users misunderstanding some limited risks they are taking
type-bug
Something isn't working
Describe the bug
Attempting to transfer my ENS domain name (kyle3.eth) from one wallet to another, using Metamask Mobile's built-in ERC-721 transfer functionality, fails.
ownerOf()
from
andto
arguments are correct, but thetokenId
argument appears to be wrong. Thus, the failure is because the (presumably nonexistent) token does not have a valid expiration.Actual Token ID according to etherscan is:
67389638965262593448462623680994207765963563118284578216830450145622015809311
(This also validates, if I look up the
ownerOf
for this one on the ENS contract for it, I get my address)Token ID in the transaction (therefore, injected/generated by metamask mobile app) according to tenderly is:
67389638965262590220318309333039877597547483020474590898904772124586079682560
(Again, validating by checking
ownerOf
reverts for this one)Seems like a precision error, perhaps? They're both the same as of
6738963896526259
but then diverge after that number, while being the same length.Looking on Etherscan to confirm, we see that argument 3 in the failed transaction is
94fd2f196cf1f800000000000000000000000000000000000000000000000000
which, when put through a hex->decimal converter, is:
67389638965262590220318309333039877597547483020474590898904772124586079682560
which matches what we see on tenderly
What is especially frustrating is I added my account to Metamask Mobile only because the chrome extension cannot handle NFT transfers but the docs inform that the mobile app can / should be used for that feature.
I'll just be doing it manually using etherscan and specifying the arguments manually, it seems.
Note: I'm sure the "intrinsic gas error" message is because Metamask Mobile predicted the transaction would fail. Better error messaging would be helpful.
Screenshots
N/A
To Reproduce
Should be clear enough from above; if not, let me know, will expand
Expected behavior
Should be clear
Smartphone (please complete the following information):
to be added after bug submission by internal support / PM
Severity
The text was updated successfully, but these errors were encountered: