New answers tagged

0

You can use wrap Web3.js provider with a Truffle HDWalletProvider. HDWalletProvider wraps the underlying provider and allows you easily use send() with ETH and smart contract transactions with the existing web3.js and contract APIs. Wrap web3 provider with HDWalletProvider Import your private keys to HDWalletProvider Interact with smart contracts and such, ...


0

A couple of things you have to fix Provider should be a function that returns the provider, and not the provider directly. Check truffle's documentation. ropsten: { provider: function () { return new HDWalletProvider(mnemonic, "URL"); }, network_id: 3, gas: 4000000 } Once you have registered with Infura they will provide an URL for ...


0

I had the same issue, after asking a around and searching around a bit, here is the quick solution and reason. My setting is: Truffle v5.1.31 node v14.4.0 Solidity v0.5.0 downgrade the ndoe to 12, which is not I want, so i found way 2 run "truffle migrate --network ropsten --skipDryRun" (https://github.com/trufflesuite/truffle/issues/3008) ...


Top 50 recent answers are included