Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Error "Migrations" -- invalid sender when I deploy to BSC testnet #3939

Closed
Dutch-TS-Dev opened this issue Mar 21, 2021 · 9 comments
Closed

Comments

@Dutch-TS-Dev
Copy link

I have created a standard OpenZeppelin ERC721PresetMinterPauserAutoId NFT smart contract. I have tested locally and it works, and I am trying to deploy it to the public testnet now. But then I get the following error: "Migrations" -- invalid sender. I used the following tutorial: https://docs.binance.org/smart-chain/developer/ERC721.html

I hope somebody can help me : )

@shoenseiwaso
Copy link

Possible dupe of #3935, #3913

@gabriellee82
Copy link

using @truffle/hdwallet-provider V1.2.3 works for me.

@shoenseiwaso
Copy link

using @truffle/hdwallet-provider V1.2.3 works for me.

@gabriellee82 which node provider/node version are you using?

@gabriellee82
Copy link

Hi, I am using the following on windows 10:

Truffle v5.2.5 (core: 5.2.5)
Solidity v0.5.16 (solc-js)
Node v15.11.0
Web3.js v1.2.9

on BSC testnet.

@shoenseiwaso
Copy link

Which BSC Testnet node provider (or your own node)? And do you know the BSC node version?

I realize now that these issues might not be linked - I have not looked at if the BSC fork has implemented the chain ID enforcement or not...

@sergei680
Copy link

Obviously it is caused by hdwallet-provider, just switch hdwallet-provider back to 1.2.2. It looks like below

...
"@truffle/hdwallet-provider": "1.2.2",
...

@gabriellee82
Copy link

Which BSC Testnet node provider (or your own node)? And do you know the BSC node version?

I realize now that these issues might not be linked - I have not looked at if the BSC fork has implemented the chain ID enforcement or not...

This is my truffle-config.js

  provider: () => new HDWalletProvider(mnemonic, `https://data-seed-prebsc-1-s1.binance.org:8545`),
  network_id: 97,
  confirmations: 10,
  timeoutBlocks: 200,
  skipDryRun: true

@gabriellee82
Copy link

Obviously it is caused by hdwallet-provider, just switch hdwallet-provider back to 1.2.2. It looks like below

...
"@truffle/hdwallet-provider": "1.2.2",
...

Yes, seems like v1.2.4 is not working.

@Dutch-TS-Dev
Copy link
Author

Meanwhile I fixed it by downgrading, as mentioned by @gabriellee82 . @gabriellee82 could you tell me why this is 'obvious'? Usually when one has not upgraded it would seem obvious to me that something doesn't work, not downgrading : )

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants