Hi there everyone,
when trying to approve an old collection to sell I’m getting the following error:
Message: Invalid data; should be ‘approve’ method, but instead is ‘setApprovalForAll’
Code: Error
Any help?
Thanks a lot!
2 Likes
Hi! Does the error look like this at all? [Bug]: Chrome setApprovalForAll function fails in Metamask for some collections · Issue #18507 · MetaMask/metamask-extension · GitHub
Can you please confirm what version of MetaMask you are using? You can find this out by going to your drop down menu > settings > about.
Thanks!
2 Likes
MugenE
May 22, 2023, 10:36pm
3
It does indeed look like that.
My version is 10.30.4
MugenE
May 23, 2023, 11:16am
4
Does anyone have any idea on what the issue could be?
Thanks!
1 Like
Comment described here explains it and provides solution:
opened 09:26AM - 07 Apr 23 UTC
closed 09:00PM - 07 Apr 23 UTC
type-bug
### Describe the bug
In the recent chrome, I'm seeing the following error whi… le calling the approval for all method. In mobile metamask, firefox and brave browser I'm not seeing this error.
<img width="1103" alt="image" src="https://user-images.githubusercontent.com/84995585/230581537-abe4ad06-f60b-4b51-8705-5a9730af1564.png">
### Steps to reproduce
1. Open this particular collection in Avalanche https://opensea.io/assets/avalanche/0xbd7bd0b4650d324e3ea6f734faa3fc37d80b7d82/15221/sell
2. Try to give approval for the collection to be used by OpenSea contracts
3. Get the error
### Error messages or log output
```shell
MetaMask encountered an error
Try again by reloading the page, or contact support here.
Error details
Message: Invalid data; should be 'approve' method, but instead is 'setApprovalForAll'
Code: Error
Stack:
Error: Invalid data; should be 'approve' method, but instead is 'setApprovalForAll'
at n.getCustomTxParamsData (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-7.js:1:255268)
at j (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-9.js:1:255177)
at ha (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:60036)
at Cu (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:104794)
at Tl (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:90710)
at gl (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:90635)
at fl (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:87983)
at chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:46441
at n.unstable_runWithPriority (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:417870)
at $o (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:46150)
at Zo (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:46386)
at Jo (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:46321)
at al (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:84772)
at Ra (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:63693)
at chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-7.js:1:166749
```
### Version
10.27.0
### Build type
None
### Browser
Chrome Version 112.0.5615.49 (Official Build) (arm64)
### Operating system
Linux
### Hardware wallet
_No response_
### Additional context
Also it's working windows Chrome 111.0.5563.147 (Official Build) (64 bit) - Metamask 10.25.0
--EDIT--
metamask console errors:
WARNING: Missing strong random number source
runtime-lavamoat.js:11626 missing dep: @metamask/eth-token-tracker>ethjs>bn.js requested buffer
getRelativeModuleId @ runtime-lavamoat.js:11626
runtime-lavamoat.js:10628 failed to load decimals for token at 0xBD7bd0B4650D324e3eA6f734fAA3FC37d80b7D82
warn @ runtime-lavamoat.js:10628
sentry.io/api/273505/store/?sentry_key=3567c198f8a8412082d32655da2961d0&sentry_version=7:1 Failed to load resource: the server responded with a status of 429 (Too Many Requests)
2runtime-lavamoat.js:7100 SES_UNHANDLED_REJECTION: BigNumber Error: new BigNumber() not a number: undefined
at ee (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-0.js:99:72467)
at E (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-0.js:99:77947)
at new X (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-0.js:99:70369)
at f (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-3.js:3:260581)
at n.getAssetDetails (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-7.js:1:86320)
at async chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-7.js:1:126149
handleRejection @ runtime-lavamoat.js:7100
sentry.io/api/273505/store/?sentry_key=3567c198f8a8412082d32655da2961d0&sentry_version=7:1 Failed to load resource: the server responded with a status of 429 (Too Many Requests)
<img width="823" alt="Screenshot 2023-04-07 at 18 18 16" src="https://user-images.githubusercontent.com/84995585/230633794-e2d58170-9c68-401a-961c-13eab2ad5908.png">
2 Likes
After reading through the solution a few times, I’ve managed to figure it out.
Thanks again both!
2 Likes
I am also seeing this issue and cannot find a viable path forward, work arounds dont make sense in the latest MetaMask.
Does anyone know of any work arounds to the bug?
Someone has just responded to the issue:
opened 09:26AM - 07 Apr 23 UTC
type-bug
area-NFTs
Sev2-normal
CS-reported
CS-tracking
team-extension-client
team-assets
### Describe the bug
In the recent chrome, I'm seeing the following error whi… le calling the approval for all method. In mobile metamask, firefox and brave browser I'm not seeing this error.
<img width="1103" alt="image" src="https://user-images.githubusercontent.com/84995585/230581537-abe4ad06-f60b-4b51-8705-5a9730af1564.png">
### Steps to reproduce
1. Open this particular collection in Avalanche https://opensea.io/assets/avalanche/0xbd7bd0b4650d324e3ea6f734faa3fc37d80b7d82/15221/sell
2. Try to give approval for the collection to be used by OpenSea contracts
3. Get the error
### Error messages or log output
```shell
MetaMask encountered an error
Try again by reloading the page, or contact support here.
Error details
Message: Invalid data; should be 'approve' method, but instead is 'setApprovalForAll'
Code: Error
Stack:
Error: Invalid data; should be 'approve' method, but instead is 'setApprovalForAll'
at n.getCustomTxParamsData (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-7.js:1:255268)
at j (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-9.js:1:255177)
at ha (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:60036)
at Cu (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:104794)
at Tl (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:90710)
at gl (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:90635)
at fl (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:87983)
at chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:46441
at n.unstable_runWithPriority (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:417870)
at $o (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:46150)
at Zo (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:46386)
at Jo (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:46321)
at al (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:84772)
at Ra (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:63693)
at chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-7.js:1:166749
```
### Version
10.27.0
### Build type
None
### Browser
Chrome Version 112.0.5615.49 (Official Build) (arm64)
### Operating system
Linux
### Hardware wallet
_No response_
### Additional context
Also it's working windows Chrome 111.0.5563.147 (Official Build) (64 bit) - Metamask 10.25.0
--EDIT--
metamask console errors:
WARNING: Missing strong random number source
runtime-lavamoat.js:11626 missing dep: @metamask/eth-token-tracker>ethjs>bn.js requested buffer
getRelativeModuleId @ runtime-lavamoat.js:11626
runtime-lavamoat.js:10628 failed to load decimals for token at 0xBD7bd0B4650D324e3eA6f734fAA3FC37d80b7D82
warn @ runtime-lavamoat.js:10628
sentry.io/api/273505/store/?sentry_key=3567c198f8a8412082d32655da2961d0&sentry_version=7:1 Failed to load resource: the server responded with a status of 429 (Too Many Requests)
2runtime-lavamoat.js:7100 SES_UNHANDLED_REJECTION: BigNumber Error: new BigNumber() not a number: undefined
at ee (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-0.js:99:72467)
at E (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-0.js:99:77947)
at new X (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-0.js:99:70369)
at f (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-3.js:3:260581)
at n.getAssetDetails (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-7.js:1:86320)
at async chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-7.js:1:126149
handleRejection @ runtime-lavamoat.js:7100
sentry.io/api/273505/store/?sentry_key=3567c198f8a8412082d32655da2961d0&sentry_version=7:1 Failed to load resource: the server responded with a status of 429 (Too Many Requests)
<img width="823" alt="Screenshot 2023-04-07 at 18 18 16" src="https://user-images.githubusercontent.com/84995585/230633794-e2d58170-9c68-401a-961c-13eab2ad5908.png">
Let us know if that works!
4 Likes
No luck unforately.
I get this when trying to invoke setApprovalForAll
on this contract 0xfbeef911dc5821886e1dda71586d90ed28174b7d
on etherscan or infact on any site which allows this change to happen.
When I click Write o try to trigger this, I get the following error:
MetaMask encountered an error
Try again by closing and reopening the popup, or contact support here.
Error details
Message: Invalid data; should be 'approve' method, but instead is 'setApprovalForAll'
Code: Error
Stack:
Error: Invalid data; should be 'approve' method, but instead is 'setApprovalForAll'
at a.getCustomTxParamsData (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-8.js:1:327461)
at H (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-11.js:1:171446)
at va (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:60111)
at Mu (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:105038)
at As (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:90901)
at Rs (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:90826)
at xs (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:88166)
at chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:46516
at n.unstable_runWithPriority (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:491157)
at Qo (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:46225)
at ti (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:46461)
at ei (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:46396)
at gs (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:84932)
at Aa (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:63768)
at chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-8.js:1:223704
I have tried the work arounds with no luck.
Any ideas on how to proceed?
Hey, I’m getting the exact same error.
I tried to approve KnownOrigin’s contract to be able to sell a KO token on their marketplace, but I think there’s some issues since they’re being treated as ERC20 tokens (the native KODA token), and not as NFTs - so MetaMask doesnt recognize the “set approval for all” thing.
This really sucks. I have tried removing the KODA in the “Token” tab (I have no “Assets” tab), and tried removing all the NFTs (I have 7 KO pieces), adding the 1 piece I want to list etc. But no luck.
I just updated my MetaMask, but I also had the error on the last version, but I haven’t updated my Chrome
Thanks for assisting me in this!
2 Likes
@jimbobbins @Norwegian
Please reach out to MetaMask Support.
This will connect you to a bot at first, answer some questions and it will open a ticket for you with an agent.
Remember - NOBODY, including from support, will ask for your secret recovery phrase or for you to input it onto any website for confirmation.
4 Likes
elekode
November 15, 2023, 3:49am
13
I am also getting this error. I have done the same as Norwegian.
Known Origin website says something about a KODA v1 and a KODA v2 contract. And under the contract I can see some people actually approving the SetApprovalForAll
I have tried all browsers and all combinations of adding the NFT
Following for updates
Hey @elekode , I would suggest contacting the support team with the link I shared above about this issue
1 Like
sol
November 17, 2023, 6:40am
15
Crazy there is no solution posted after all this time. Seems like no one at MetaMask cares either, probably time to switch to Rabby wallet.
Here’s the way to fix it:
Go to your MetaMask wallet in your browser not the extension, go to swap tab, change networks to optimism then back to eth. Boom fixed, you are welcome.
1 Like