Closed SilentCicero closed 7 years ago
Sorry for the late response. Found the error and will release a fix in about one hour. It was caused by an incoherent contract argument naming between solc and solcjs, in this case between runtimeBytecode and bin-runtime. https://github.com/ethereum/solc-js/issues/67
Successfully tested with dapple 0.8.18
!
@mhhf thanks Dennis, shall we close?
I'm getting this error for almost no particular reason:
I'm using dapple 0.8.15,
pragma solidity ^0.4.3;
. The errors can come from almost nothing, i.e. adding a blank method, adding in repeat code that has nothing to do with strings, Buffers or anything of the sort. I cant trace the error, as it's not loud enough.I've now had this error on two occasions, with two test files that worked fine in dapple 7.3, solc 3x.
Any thoughts on how to debug this?
It's definitely a dapple thing, my contract code is valid, and virtually the same as before re: dapple 7.2
Seems this has something to do with it: https://github.com/nexusdev/dapple-test/blob/master/lib/vmtest.js#L74 https://github.com/nexusdev/dapple-test/blob/master/lib/vmtest.js#L303 https://github.com/nexusdev/dapple-chain/blob/master/lib/server.js#L181
Potentially the
server.js
is the culprit.If you uncomment this line test, and run it:
npm test
.. you will see the error: https://github.com/boardroom-project/boardroom-contracts/blob/master/contracts/examples/tests/CampaignRules_test.sol#L93To recreate:
Uncomment these lines: https://github.com/boardroom-project/boardroom-contracts/blob/master/contracts/examples/tests/CampaignRules_test.sol#L93
then: