Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After Upgrade to V 2.0.0 Cannot read property 'EIP712Domain' of undefined and "placeBid You declined to authorize your offer" #372

Closed
csidi90 opened this issue Feb 11, 2022 · 13 comments
Labels
dev-sdk-bug issues related to sdk

Comments

@csidi90
Copy link

csidi90 commented Feb 11, 2022

I just upgraded my version from Opensea to the latest one of 2.0.0 and eversince then I get these 2 errors everytime I use the createBuyOrder function

| TypeError: Cannot read property 'EIP712Domain' of undefined nftapi_1 | at Object.findTypeDependencies (/app/node_modules/@truffle/hdwallet-provider/node_modules/eth-sig-util/src/index.ts:230:47) nftapi_1 | at Object.encodeType (/app/node_modules/@truffle/hdwallet-provider/node_modules/eth-sig-util/src/index.ts:200:21) nftapi_1 | at Object.hashType (/app/node_modules/@truffle/hdwallet-provider/node_modules/eth-sig-util/src/index.ts:267:32) nftapi_1 | at Object.encodeData (/app/node_modules/@truffle/hdwallet-provider/node_modules/eth-sig-util/src/index.ts:96:33) nftapi_1 | at Object.hashStruct (/app/node_modules/@truffle/hdwallet-provider/node_modules/eth-sig-util/src/index.ts:256:32) nftapi_1 | at Object.sign (/app/node_modules/@truffle/hdwallet-provider/node_modules/eth-sig-util/src/index.ts:304:12) nftapi_1 | at Object.signTypedData (/app/node_modules/@truffle/hdwallet-provider/node_modules/eth-sig-util/src/index.ts:600:34) nftapi_1 | at HookedWalletSubprovider.signTypedMessage (/app/node_modules/@truffle/hdwallet-provider/src/index.ts:228:23) nftapi_1 | at /app/node_modules/web3-provider-engine/subproviders/hooked-wallet.js:390:18 nftapi_1 | at nextTask (/app/node_modules/async/waterfall.js:16:14) nftapi_1 | at next (/app/node_modules/async/waterfall.js:23:9) nftapi_1 | at /app/node_modules/async/internal/onlyOnce.js:12:16 nftapi_1 | at HookedWalletSubprovider.checkApproval (/app/node_modules/web3-provider-engine/subproviders/hooked-wallet.js:403:3) nftapi_1 | at /app/node_modules/web3-provider-engine/subproviders/hooked-wallet.js:389:30 nftapi_1 | at nextTask (/app/node_modules/async/waterfall.js:16:14) nftapi_1 | at next (/app/node_modules/async/waterfall.js:23:9)

and also "You declined to authorize your offer"

What should I do?

@BeniSchlattmann
Copy link

same issue here. We cannot upgrade to the new SDK Version before this is fixed...

@p-real96
Copy link

... same issue huere

@nftbutler-ao
Copy link

same issue here.

@chapma26
Copy link

Looks like in the repo .nvmrc uses node v16.11.0. I removed my package-lock.json and and node_modules folder and did npm install thinking that might fix it but alas it did not.

@csidi90
Copy link
Author

csidi90 commented Feb 18, 2022

Anyone solved it yet? Think they Said people need to Upgrade to 2.0 in Order for everything to work but their new sdk version doesnt work and bugs Not getting replied to lol

@alexanderatallah
Copy link
Contributor

Is everyone using hdwallet-provider? could be that there's an old version that does not support signTypedData_v4

@rjbks
Copy link

rjbks commented Feb 18, 2022

@alexanderatallah can you please provide an example of instantiating seaport and a provider that supports eth_signTypedData_v4?

@alexanderatallah
Copy link
Contributor

Can you try using this for your provider? https://www.npmjs.com/package/@truffle/hdwallet-provider

@rjbks
Copy link

rjbks commented Feb 18, 2022

@alexanderatallah everyone in discord dev chat is saying that isn't working. They're now suggesting to use ethers.js provider. Ethers providers seem to be read only, signing needs a signer/wallet.

@lomboreb
Copy link

Can you try using this for your provider? https://www.npmjs.com/package/@truffle/hdwallet-provider

I've tried with the lastest version of @truffle/hdwallet-provider (2.0.3), but I get the same error:

TypeError: Cannot read property 'EIP712Domain' of undefined
...
Error while bidding item: Error: You declined to authorize your offer

@nenadpnc
Copy link

Upgrade to v2.0.1, it's fixed with #388

@velmoorthi
Copy link

Upgrade to v2.0.1, it's fixed with #388

great thanks!

@esteban-OpenSea esteban-OpenSea added the dev-sdk-bug issues related to sdk label Apr 8, 2022
@esteban-OpenSea
Copy link

Upgrading versions fixes this, like @nenadpnc and @velmoorthi mentioned.

#388

Closing, since I haven't seen any recent activity of this being an issue. Feel free to let me know if it still is and I can re-open!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev-sdk-bug issues related to sdk
Projects
None yet
Development

No branches or pull requests