# Strange error when trying to approve collection to sell on OpenSea

**URL:** <https://community.metamask.com/t/strange-error-when-trying-to-approve-collection-to-sell-on-opensea/25671>\
**Category:** NFTs\
**Created:** [May 22, 2023, 5:31pm UTC](https://community.metamask.com/t/strange-error-when-trying-to-approve-collection-to-sell-on-opensea/25671 "2023-05-22T17:31:00Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![nakedwinnie](https://dub1.discourse-cdn.com/metamask/user_avatar/community.metamask.com/nakedwinnie/32/5551_2.png) [@nakedwinnie](https://community.metamask.com/u/nakedwinnie)\
**Post date:** [May 23, 2023, 2:26pm UTC](https://community.metamask.com/t/strange-error-when-trying-to-approve-collection-to-sell-on-opensea/25671/5 "2023-05-23T14:26:04Z")

</div>

Comment described here explains it and provides solution:

> <https://github.com/MetaMask/metamask-extension/issues/18507#issuecomment-1500642484>
>
> \### 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"\>

---

_[View the full topic](https://community.metamask.com/t/strange-error-when-trying-to-approve-collection-to-sell-on-opensea/25671)._
