简体   繁体   中英

Error migrating truffle rinkeby [Cannot read property 'bind' of undefined]

I'm trying to deploy/migrate contract to rinkeby network, while using command: truffle deploy --reset --network=rinkeby

It loads the keys and afterwards throws error:

C:\Users\marti\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\truffle-provider\wrapper.js:26

var originalSendAsync = provider.sendAsync.bind(provider);
TypeError: Cannot read property 'bind' of undefined

I'm able to run truffle develop without any issues I'm also using:

  • truffle-hdwallet-provider
  • zappelin-solidity

Okay so the issue was comming from the truffle-hdwallet-provider version.

changing the ver from : 1.0.0-web3one.2 to : 0.0.6

solved the issue

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM