From 9a5479266c4c23f1388a7cd07b21a2b73720bad5 Mon Sep 17 00:00:00 2001 From: Bernhard Mueller Date: Wed, 28 Nov 2018 10:07:09 +0700 Subject: [PATCH] Re-add and fix metacoin sample --- tests/testdata/input_contracts/calls.sol | 5 +++-- tests/testdata/inputs/metacoin.sol.o | 1 + tests/testdata/outputs_expected/metacoin.sol.o.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 tests/testdata/inputs/metacoin.sol.o diff --git a/tests/testdata/input_contracts/calls.sol b/tests/testdata/input_contracts/calls.sol index 513e31fb..05b388f0 100644 --- a/tests/testdata/input_contracts/calls.sol +++ b/tests/testdata/input_contracts/calls.sol @@ -9,7 +9,7 @@ contract Caller { uint256 statevar; constructor(address addr) public { - fixed_address = addr; + fixed_address = "0x552254cbaaf32613c6c0450cf19524594ef84044"; } function thisisfine() public { @@ -27,10 +27,11 @@ contract Caller { function callstoredaddress() public { stored_address.call(""); + statevar = 0; } function setstoredaddress(address addr) public { stored_address = addr; } -} \ No newline at end of file +} diff --git a/tests/testdata/inputs/metacoin.sol.o b/tests/testdata/inputs/metacoin.sol.o new file mode 100644 index 00000000..87e952f3 --- /dev/null +++ b/tests/testdata/inputs/metacoin.sol.o @@ -0,0 +1 @@ +60606040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806327e235e314610051578063412664ae1461009e575b600080fd5b341561005c57600080fd5b610088600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506100f8565b6040518082815260200191505060405180910390f35b34156100a957600080fd5b6100de600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610110565b604051808215151515815260200191505060405180910390f35b60006020528060005260406000206000915090505481565b6000816000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054101561016157600090506101fe565b816000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540392505081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550600090505b929150505600a165627a7a72305820c860d60246e215343f02c5025aeef4ad1f207b0a7d2dec05e43f6ecaaebe9cec0029 \ No newline at end of file diff --git a/tests/testdata/outputs_expected/metacoin.sol.o.json b/tests/testdata/outputs_expected/metacoin.sol.o.json index 09f3734f..4c976ff9 100644 --- a/tests/testdata/outputs_expected/metacoin.sol.o.json +++ b/tests/testdata/outputs_expected/metacoin.sol.o.json @@ -1,6 +1,6 @@ { "error": null, - "issues": [ + "issues": [] { "address": 498, "contract": "Unknown",