Skip to content

Upgrade for solc 0.4.16 and TestRPC v4.1.3#13

Open
craig-ludington wants to merge 1 commit intopelle:masterfrom
craig-ludington:cbl/fix-abi-parsing
Open

Upgrade for solc 0.4.16 and TestRPC v4.1.3#13
craig-ludington wants to merge 1 commit intopelle:masterfrom
craig-ludington:cbl/fix-abi-parsing

Conversation

@craig-ludington
Copy link

@craig-ludington craig-ludington commented Oct 12, 2017

  • Solc
    • The format of the JSON emitted by solc changed between version 0.4.1
      and 0.4.16. The keys for contracts used to be the contract name but
      now they include the file name. Old: "SimpleToken", new: "path/to/SimpleToken:SimpleToken".
    • cloth.contracts/compile-solidity accepts the newer version of solc
      JSON output
    • The new version of compile-solidity accepts solc 0.4.1 output as well
      as 0.4.16 output.
    • There's an optional compile-solidity argument, ignore-warnings? that
      treats the compilation as successful when there are warnings but solc
      exit status is zero. If solc returns a non-zero status,
      compile-solidity fails either way.
  • TestRPC
    • The default testrpc gasPrice is very large (20000000000) which
      caused many test failures. Some failed due to out-of-gas errors.
      Others failed because they explicitly tested for gasPrice of 1.
    • Starting TestRPC with --gasPrice 1 allows the tests to pass.

* Solc
** The format of the JSON emitted by solc changed between version 0.4.1
   and 0.4.16.  The keys for contracts used to be the contract name but
   now they include the file name.  Old: "SimpleToken", new: "path/to/SimpleToken:SimpleToken".
** cloth.contracts/compile-solidity accepts the newer version of solc
   JSON output
** The new version of compile-solidity accepts solc 0.4.1 output as well
   as 0.4.16 output.
** There's an optional compile-solidity argument, `ignore-warnings?` that
   treats the compilation as successful when there are warnings but solc
   exit status is zero.  If solc returns a non-zero status,
   compile-solidity fails either way.
* TestRPC
** The default `testrpc` gasPrice is very large (20000000000) which
   caused many test failures.  Some failed due to out-of-gas errors.
   Others failed because they explicitly tested for gasPrice of 1.
** Starting TestRPC with `--gasPrice 1` allows the tests to pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments