Open entrptaher opened 6 years ago
I also experienced the same issue.
Did you solve this? EDIT: Adding '0x' to the data value worked for me.
const result = await new web3.eth.Contract(JSON.parse(compiledFactory.interface))
.deploy({ data: '0x' + compiledFactory.bytecode })
.send({ gas: '3000000', from: accounts[0] });
i have the same problem, Adding '0x' to the data help
Got this issue in 0.0.6
Reverting to 0.0.3 worked for me
Prepending 0x
to the bytecode worked for me in 0.0.6
Maybe the issue isn't with this package but the bytecode needs to be parsed better? No idea at which point that should be addressed.
running into a very similar issue. stuck for over 48 hours if anyone could help, would be greatly appreciated: https://github.com/trufflesuite/truffle-hdwallet-provider/issues/78
Getting below error.
"before each" hook for "deploys a contract": Error: Invalid number of parameters for "undefined". Got 0 expected 1! at Object.InvalidNumberOfParams (node_modules\web3-core-helpers\src\errors.js:32:16) at Object._createTxObject (node_modules\web3-eth-contract\src\index.js:791:22) at Contract.deploy (node_modules\web3-eth-contract\src\index.js:596:33) at Context.beforeEach (test\Inbox.test.js:48:4) at process._tickCallback (internal/process/next_tick.js:68:7)
Creating a contract using version
0.0.3
works where0.0.4
and0.0.5
fails.Sample code:
Packages:
contract file:
Deploy file:
Sample success transactions:
LOG:
Sample failed transactions:
LOG: