Merge pull request #2964 from poanetwork/vb-fix-bug-in-constructor-args-in-verification
Fix bug in skipping of constructor arguments in contract verificationpull/2969/head
commit
677a0fba8a
@ -0,0 +1,13 @@ |
|||||||
|
[ |
||||||
|
{ |
||||||
|
"compiler_version": "v0.5.11+commit.c082d0b4", |
||||||
|
"contract": "pragma solidity 0.5.11;library BadSafeMath { function add(uint256 a, uint256 b) public pure returns (uint256) { uint256 c = a + 2 * b; require(c >= a, \"SafeMath: addition overflow\"); return c; }}contract SimpleStorage { uint256 storedData = 10; using BadSafeMath for uint256; function increment(uint256 x) public { storedData = storedData.add(x); } function set(uint256 x) public { storedData = x; } function get() public view returns (uint256) { return storedData; }}", |
||||||
|
"expected_bytecode": "608060405234801561001057600080fd5b50600436106100415760003560e01c806360fe47b1146100465780636d4ce63c146100655780637cf5dab01461007f575b600080fd5b6100636004803603602081101561005c57600080fd5b503561009c565b005b61006d6100a1565b60408051918252519081900360200190f35b6100636004803603602081101561009557600080fd5b50356100a7565b600055565b60005490565b600054733662e222908fa35f013bee37695d0510098b6d7363771602f79091836040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b15801561010257600080fd5b505af4158015610116573d6000803e3d6000fd5b505050506040513d602081101561012c57600080fd5b50516000555056fea265627a7a723158203e59bfb9a5a2e55d38231922c86d8b2ec9b66cb2f6595613674bc4e15290b60764736f6c634300050b0032", |
||||||
|
"external_libraries": { |
||||||
|
"BadSafeMath": "0x3662e222908fa35f013bee37695d0510098b6d73" |
||||||
|
}, |
||||||
|
"name": "SimpleStorage", |
||||||
|
"optimize": true |
||||||
|
} |
||||||
|
] |
||||||
|
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,13 @@ |
|||||||
|
[ |
||||||
|
{ |
||||||
|
"compiler_version": "v0.5.11+commit.c082d0b4", |
||||||
|
"contract": "pragma solidity 0.5.11;library BadSafeMath { function add(uint256 a, uint256 b) public pure returns (uint256) { uint256 c = a + 2 * b; require(c >= a, \"SafeMath: addition overflow\"); return c; }}contract SimpleStorage { uint256 storedData = 10; using BadSafeMath for uint256; function increment(uint256 x) public { storedData = storedData.add(x); } function set(uint256 x) public { storedData = x; } function get() public view returns (uint256) { return storedData; }}", |
||||||
|
"expected_bytecode": "608060405234801561001057600080fd5b50600436106100415760003560e01c806360fe47b1146100465780636d4ce63c146100655780637cf5dab01461007f575b600080fd5b6100636004803603602081101561005c57600080fd5b503561009c565b005b61006d6100a1565b60408051918252519081900360200190f35b6100636004803603602081101561009557600080fd5b50356100a7565b600055565b60005490565b600054733662e222908fa35f013bee37695d0510098b6d7363771602f79091836040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b15801561010257600080fd5b505af4158015610116573d6000803e3d6000fd5b505050506040513d602081101561012c57600080fd5b50516000555056fea265627a7a723158203e59bfb9a5a2e55d38231922c86d8b2ec9b66cb2f6595613674bc4e15290b60764736f6c634300050b0032", |
||||||
|
"external_libraries": { |
||||||
|
"BadSafeMath": "0x3662e222908fa35f013bee37695d0510098b6d73" |
||||||
|
}, |
||||||
|
"name": "SimpleStorage", |
||||||
|
"optimize": true |
||||||
|
} |
||||||
|
] |
||||||
|
|
Loading…
Reference in new issue