diff --git a/remix-resolve/tests/test.js b/remix-resolve/tests/test.js index be21ae864a..c1eedabf42 100644 --- a/remix-resolve/tests/test.js +++ b/remix-resolve/tests/test.js @@ -93,8 +93,8 @@ describe('testRunner', function () { throw e }) }) - it('should match compiled json', function () { - assert.deepEqual(results, `{"contracts":{"greeter.sol":{"Greeter":{"abi":[{"constant":false,"inputs":[],"name":"kill","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"greet","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"mortal","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_greeting","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"}],"devdoc":{"methods":{}},"evm":{"bytecode":{"linkReferences":{},"object":"608060405234801561001057600080fd5b506040516103733803806103738339810180604052602081101561003357600080fd5b81019080805164010000000081111561004b57600080fd5b8201602081018481111561005e57600080fd5b815164010000000081118282018710171561007857600080fd5b505080519093506100929250600191506020840190610099565b5050610134565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100da57805160ff1916838001178555610107565b82800160010185558215610107579182015b828111156101075782518255916020019190600101906100ec565b50610113929150610117565b5090565b61013191905b80821115610113576000815560010161011d565b90565b610230806101436000396000f3fe6080604052600436106100565763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166341c0e1b5811461005b578063cfae321714610072578063f1eae25c146100fc575b600080fd5b34801561006757600080fd5b50610070610111565b005b34801561007e57600080fd5b5061008761014e565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100c15781810151838201526020016100a9565b50505050905090810190601f1680156100ee5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561010857600080fd5b506100706101e3565b60005473ffffffffffffffffffffffffffffffffffffffff1633141561014c5760005473ffffffffffffffffffffffffffffffffffffffff16ff5b565b60018054604080516020601f600260001961010087891615020190951694909404938401819004810282018101909252828152606093909290918301828280156101d95780601f106101ae576101008083540402835291602001916101d9565b820191906000526020600020905b8154815290600101906020018083116101bc57829003601f168201915b5050505050905090565b6000805473ffffffffffffffffffffffffffffffffffffffff19163317905556fea165627a7a72305820219247b0f7e46da9d88f6a333d70c1cab030925efd29dccd57f97606a232a7530029","opcodes":"PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD PUSH2 0x373 CODESIZE SUB DUP1 PUSH2 0x373 DUP4 CODECOPY DUP2 ADD DUP1 PUSH1 0x40 MSTORE PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x33 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 DUP1 DUP1 MLOAD PUSH5 0x100000000 DUP2 GT ISZERO PUSH2 0x4B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 ADD PUSH1 0x20 DUP2 ADD DUP5 DUP2 GT ISZERO PUSH2 0x5E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 MLOAD PUSH5 0x100000000 DUP2 GT DUP3 DUP3 ADD DUP8 LT OR ISZERO PUSH2 0x78 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP DUP1 MLOAD SWAP1 SWAP4 POP PUSH2 0x92 SWAP3 POP PUSH1 0x1 SWAP2 POP PUSH1 0x20 DUP5 ADD SWAP1 PUSH2 0x99 JUMP JUMPDEST POP POP PUSH2 0x134 JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH1 0x1F LT PUSH2 0xDA JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH2 0x107 JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH2 0x107 JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0x107 JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0xEC JUMP JUMPDEST POP PUSH2 0x113 SWAP3 SWAP2 POP PUSH2 0x117 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH2 0x131 SWAP2 SWAP1 JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0x113 JUMPI PUSH1 0x0 DUP2 SSTORE PUSH1 0x1 ADD PUSH2 0x11D JUMP JUMPDEST SWAP1 JUMP JUMPDEST PUSH2 0x230 DUP1 PUSH2 0x143 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH2 0x56 JUMPI PUSH4 0xFFFFFFFF PUSH29 0x100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 CALLDATALOAD DIV AND PUSH4 0x41C0E1B5 DUP2 EQ PUSH2 0x5B JUMPI DUP1 PUSH4 0xCFAE3217 EQ PUSH2 0x72 JUMPI DUP1 PUSH4 0xF1EAE25C EQ PUSH2 0xFC JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x67 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x70 PUSH2 0x111 JUMP JUMPDEST STOP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x7E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x87 PUSH2 0x14E JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 DUP1 DUP3 MSTORE DUP4 MLOAD DUP2 DUP4 ADD MSTORE DUP4 MLOAD SWAP2 SWAP3 DUP4 SWAP3 SWAP1 DUP4 ADD SWAP2 DUP6 ADD SWAP1 DUP1 DUP4 DUP4 PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0xC1 JUMPI DUP2 DUP2 ADD MLOAD DUP4 DUP3 ADD MSTORE PUSH1 0x20 ADD PUSH2 0xA9 JUMP JUMPDEST POP POP POP POP SWAP1 POP SWAP1 DUP2 ADD SWAP1 PUSH1 0x1F AND DUP1 ISZERO PUSH2 0xEE JUMPI DUP1 DUP3 SUB DUP1 MLOAD PUSH1 0x1 DUP4 PUSH1 0x20 SUB PUSH2 0x100 EXP SUB NOT AND DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP JUMPDEST POP SWAP3 POP POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x108 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x70 PUSH2 0x1E3 JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER EQ ISZERO PUSH2 0x14C JUMPI PUSH1 0x0 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SELFDESTRUCT JUMPDEST JUMP JUMPDEST PUSH1 0x1 DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 DUP8 DUP10 AND ISZERO MUL ADD SWAP1 SWAP6 AND SWAP5 SWAP1 SWAP5 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x1D9 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x1AE JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x1D9 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x1BC JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF NOT AND CALLER OR SWAP1 SSTORE JUMP INVALID LOG1 PUSH6 0x627A7A723058 KECCAK256 0x21 SWAP3 0x47 0xb0 0xf7 0xe4 PUSH14 0xA9D88F6A333D70C1CAB030925EFD 0x29 0xdc 0xcd JUMPI 0xf9 PUSH23 0x6A232A753002900000000000000000000000000000000 ","sourceMap":"48:357:0:-;;;207:81;8:9:-1;5:2;;;30:1;27;20:12;5:2;207:81:0;;;;;;;;;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;207:81:0;;;;;;19:11:-1;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;213:10;;261:11;244:29;;285:43;;;282:58;-1:-1;233:115;230:2;;;361:1;358;351:12;230:2;-1:-1;;261:20:0;;207:81;;-1:-1:-1;261:20:0;;-1:-1:-1;261:8:0;;-1:-1:-1;261:20:0;;;;;:::i;:::-;;207:81;48:357;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48:357:0;;;-1:-1:-1;48:357:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;"},"gasEstimates":{"creation":{"codeDepositCost":"112000","executionCost":"infinite","totalCost":"infinite"},"external":{"greet()":"infinite","kill()":"30560","mortal()":"20397"}}},"userdoc":{"methods":{}}}},"mortal.sol":{"Mortal":{"abi":[{"constant":false,"inputs":[],"name":"kill","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"mortal","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}],"devdoc":{"methods":{}},"evm":{"bytecode":{"linkReferences":{},"object":"608060405234801561001057600080fd5b5060fc8061001f6000396000f3fe60806040526004361060485763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166341c0e1b58114604d578063f1eae25c146061575b600080fd5b348015605857600080fd5b50605f6073565b005b348015606c57600080fd5b50605f60af565b60005473ffffffffffffffffffffffffffffffffffffffff1633141560ad5760005473ffffffffffffffffffffffffffffffffffffffff16ff5b565b6000805473ffffffffffffffffffffffffffffffffffffffff19163317905556fea165627a7a723058203403979ec65509fedd999f7464440863faa25a2acaabd8dc0d01fa3aaeaee4400029","opcodes":"PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0xFC DUP1 PUSH2 0x1F PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH1 0x48 JUMPI PUSH4 0xFFFFFFFF PUSH29 0x100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 CALLDATALOAD DIV AND PUSH4 0x41C0E1B5 DUP2 EQ PUSH1 0x4D JUMPI DUP1 PUSH4 0xF1EAE25C EQ PUSH1 0x61 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH1 0x58 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x5F PUSH1 0x73 JUMP JUMPDEST STOP JUMPDEST CALLVALUE DUP1 ISZERO PUSH1 0x6C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x5F PUSH1 0xAF JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER EQ ISZERO PUSH1 0xAD JUMPI PUSH1 0x0 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SELFDESTRUCT JUMPDEST JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF NOT AND CALLER OR SWAP1 SSTORE JUMP INVALID LOG1 PUSH6 0x627A7A723058 KECCAK256 CALLVALUE SUB SWAP8 SWAP15 0xc6 SSTORE MULMOD INVALID 0xdd SWAP10 SWAP16 PUSH21 0x64440863FAA25A2ACAABD8DC0D01FA3AAEAEE44000 0x29 ","sourceMap":"25:375:1:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25:375:1;;;;;;;"},"gasEstimates":{"creation":{"codeDepositCost":"50400","executionCost":"99","totalCost":"50499"},"external":{"kill()":"30560","mortal()":"20375"}}},"userdoc":{"methods":{}}}}},"sources":{"greeter.sol":{"id":0,"legacyAST":{"attributes":{"absolutePath":"greeter.sol","exportedSymbols":{"Greeter":[25]}},"children":[{"attributes":{"literals":["solidity","^","0.5",".0"]},"id":1,"name":"PragmaDirective","src":"0:23:0"},{"attributes":{"SourceUnit":53,"absolutePath":"mortal.sol","file":"./mortal.sol","scope":26,"symbolAliases":[null],"unitAlias":""},"id":2,"name":"ImportDirective","src":"24:22:0"},{"attributes":{"contractDependencies":[52],"contractKind":"contract","documentation":null,"fullyImplemented":true,"linearizedBaseContracts":[25,52],"name":"Greeter","scope":26},"children":[{"attributes":{"arguments":null},"children":[{"attributes":{"contractScope":null,"name":"Mortal","referencedDeclaration":52,"type":"contract Mortal"},"id":3,"name":"UserDefinedTypeName","src":"68:6:0"}],"id":4,"name":"InheritanceSpecifier","src":"68:6:0"},{"attributes":{"constant":false,"name":"greeting","scope":25,"stateVariable":true,"storageLocation":"default","type":"string","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string"},"id":5,"name":"ElementaryTypeName","src":"135:6:0"}],"id":6,"name":"VariableDeclaration","src":"135:15:0"},{"attributes":{"documentation":null,"implemented":true,"isConstructor":true,"kind":"constructor","modifiers":[null],"name":"","scope":25,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_greeting","scope":16,"stateVariable":false,"storageLocation":"memory","type":"string","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string"},"id":7,"name":"ElementaryTypeName","src":"219:6:0"}],"id":8,"name":"VariableDeclaration","src":"219:23:0"}],"id":9,"name":"ParameterList","src":"218:25:0"},{"attributes":{"parameters":[null]},"children":[],"id":10,"name":"ParameterList","src":"251:0:0"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"string storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":6,"type":"string storage ref","value":"greeting"},"id":11,"name":"Identifier","src":"261:8:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":8,"type":"string memory","value":"_greeting"},"id":12,"name":"Identifier","src":"272:9:0"}],"id":13,"name":"Assignment","src":"261:20:0"}],"id":14,"name":"ExpressionStatement","src":"261:20:0"}],"id":15,"name":"Block","src":"251:37:0"}],"id":16,"name":"FunctionDefinition","src":"207:81:0"},{"attributes":{"documentation":null,"implemented":true,"isConstructor":false,"kind":"function","modifiers":[null],"name":"greet","scope":25,"stateMutability":"view","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":17,"name":"ParameterList","src":"332:2:0"},{"children":[{"attributes":{"constant":false,"name":"","scope":24,"stateVariable":false,"storageLocation":"memory","type":"string","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string"},"id":18,"name":"ElementaryTypeName","src":"356:6:0"}],"id":19,"name":"VariableDeclaration","src":"356:13:0"}],"id":20,"name":"ParameterList","src":"355:15:0"},{"children":[{"attributes":{"functionReturnParameters":20},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":6,"type":"string storage ref","value":"greeting"},"id":21,"name":"Identifier","src":"388:8:0"}],"id":22,"name":"Return","src":"381:15:0"}],"id":23,"name":"Block","src":"371:32:0"}],"id":24,"name":"FunctionDefinition","src":"318:85:0"}],"id":25,"name":"ContractDefinition","src":"48:357:0"}],"id":26,"name":"SourceUnit","src":"0:406:0"}},"mortal.sol":{"id":1,"legacyAST":{"attributes":{"absolutePath":"mortal.sol","exportedSymbols":{"Mortal":[52]}},"children":[{"attributes":{"literals":["solidity","^","0.5",".0"]},"id":27,"name":"PragmaDirective","src":"0:23:1"},{"attributes":{"baseContracts":[null],"contractDependencies":[null],"contractKind":"contract","documentation":null,"fullyImplemented":true,"linearizedBaseContracts":[52],"name":"Mortal","scope":53},"children":[{"attributes":{"constant":false,"name":"owner","scope":52,"stateVariable":true,"storageLocation":"default","type":"address payable","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","stateMutability":"payable","type":"address payable"},"id":28,"name":"ElementaryTypeName","src":"99:15:1"}],"id":29,"name":"VariableDeclaration","src":"99:21:1"},{"attributes":{"documentation":null,"implemented":true,"isConstructor":false,"kind":"function","modifiers":[null],"name":"mortal","scope":52,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":30,"name":"ParameterList","src":"231:2:1"},{"attributes":{"parameters":[null]},"children":[],"id":31,"name":"ParameterList","src":"241:0:1"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"address payable"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":29,"type":"address payable","value":"owner"},"id":32,"name":"Identifier","src":"243:5:1"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address payable"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":67,"type":"msg","value":"msg"},"id":33,"name":"Identifier","src":"251:3:1"}],"id":34,"name":"MemberAccess","src":"251:10:1"}],"id":35,"name":"Assignment","src":"243:18:1"}],"id":36,"name":"ExpressionStatement","src":"243:18:1"}],"id":37,"name":"Block","src":"241:23:1"}],"id":38,"name":"FunctionDefinition","src":"216:48:1"},{"attributes":{"documentation":null,"implemented":true,"isConstructor":false,"kind":"function","modifiers":[null],"name":"kill","scope":52,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":39,"name":"ParameterList","src":"339:2:1"},{"attributes":{"parameters":[null]},"children":[],"id":40,"name":"ParameterList","src":"349:0:1"},{"children":[{"attributes":{"falseBody":null},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address_payable","typeString":"address payable"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"==","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address payable"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":67,"type":"msg","value":"msg"},"id":41,"name":"Identifier","src":"355:3:1"}],"id":42,"name":"MemberAccess","src":"355:10:1"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":29,"type":"address payable","value":"owner"},"id":43,"name":"Identifier","src":"369:5:1"}],"id":44,"name":"BinaryOperation","src":"355:19:1"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address_payable","typeString":"address payable"}],"overloadedDeclarations":[null],"referencedDeclaration":75,"type":"function (address payable)","value":"selfdestruct"},"id":45,"name":"Identifier","src":"376:12:1"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":29,"type":"address payable","value":"owner"},"id":46,"name":"Identifier","src":"389:5:1"}],"id":47,"name":"FunctionCall","src":"376:19:1"}],"id":48,"name":"ExpressionStatement","src":"376:19:1"}],"id":49,"name":"IfStatement","src":"351:44:1"}],"id":50,"name":"Block","src":"349:49:1"}],"id":51,"name":"FunctionDefinition","src":"326:72:1"}],"id":52,"name":"ContractDefinition","src":"25:375:1"}],"id":53,"name":"SourceUnit","src":"0:401:1"}}}}`) + it('should match compiled reult', function () { + assert.deepEqual(results, `{"contracts":{"greeter.sol":{"Greeter":{"abi":[{"constant":false,"inputs":[],"name":"kill","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"greet","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"mortal","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_greeting","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"}],"devdoc":{"methods":{}},"evm":{"bytecode":{"linkReferences":{},"object":"608060405234801561001057600080fd5b5060405161036d38038061036d8339810180604052602081101561003357600080fd5b81019080805164010000000081111561004b57600080fd5b8201602081018481111561005e57600080fd5b815164010000000081118282018710171561007857600080fd5b505080519093506100929250600191506020840190610099565b5050610134565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100da57805160ff1916838001178555610107565b82800160010185558215610107579182015b828111156101075782518255916020019190600101906100ec565b50610113929150610117565b5090565b61013191905b80821115610113576000815560010161011d565b90565b61022a806101436000396000f3fe608060405260043610610050577c0100000000000000000000000000000000000000000000000000000000600035046341c0e1b58114610055578063cfae32171461006c578063f1eae25c146100f6575b600080fd5b34801561006157600080fd5b5061006a61010b565b005b34801561007857600080fd5b50610081610148565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100bb5781810151838201526020016100a3565b50505050905090810190601f1680156100e85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561010257600080fd5b5061006a6101dd565b60005473ffffffffffffffffffffffffffffffffffffffff163314156101465760005473ffffffffffffffffffffffffffffffffffffffff16ff5b565b60018054604080516020601f600260001961010087891615020190951694909404938401819004810282018101909252828152606093909290918301828280156101d35780601f106101a8576101008083540402835291602001916101d3565b820191906000526020600020905b8154815290600101906020018083116101b657829003601f168201915b5050505050905090565b6000805473ffffffffffffffffffffffffffffffffffffffff19163317905556fea165627a7a723058204facb10e9947102cf2229b615bcb6ea700a6f361f5d538c2d88968e5d683a7240029","opcodes":"PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD PUSH2 0x36D CODESIZE SUB DUP1 PUSH2 0x36D DUP4 CODECOPY DUP2 ADD DUP1 PUSH1 0x40 MSTORE PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x33 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 DUP1 DUP1 MLOAD PUSH5 0x100000000 DUP2 GT ISZERO PUSH2 0x4B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 ADD PUSH1 0x20 DUP2 ADD DUP5 DUP2 GT ISZERO PUSH2 0x5E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 MLOAD PUSH5 0x100000000 DUP2 GT DUP3 DUP3 ADD DUP8 LT OR ISZERO PUSH2 0x78 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP DUP1 MLOAD SWAP1 SWAP4 POP PUSH2 0x92 SWAP3 POP PUSH1 0x1 SWAP2 POP PUSH1 0x20 DUP5 ADD SWAP1 PUSH2 0x99 JUMP JUMPDEST POP POP PUSH2 0x134 JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH1 0x1F LT PUSH2 0xDA JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH2 0x107 JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH2 0x107 JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0x107 JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0xEC JUMP JUMPDEST POP PUSH2 0x113 SWAP3 SWAP2 POP PUSH2 0x117 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH2 0x131 SWAP2 SWAP1 JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0x113 JUMPI PUSH1 0x0 DUP2 SSTORE PUSH1 0x1 ADD PUSH2 0x11D JUMP JUMPDEST SWAP1 JUMP JUMPDEST PUSH2 0x22A DUP1 PUSH2 0x143 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH2 0x50 JUMPI PUSH29 0x100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 CALLDATALOAD DIV PUSH4 0x41C0E1B5 DUP2 EQ PUSH2 0x55 JUMPI DUP1 PUSH4 0xCFAE3217 EQ PUSH2 0x6C JUMPI DUP1 PUSH4 0xF1EAE25C EQ PUSH2 0xF6 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x61 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x6A PUSH2 0x10B JUMP JUMPDEST STOP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x78 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x81 PUSH2 0x148 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 DUP1 DUP3 MSTORE DUP4 MLOAD DUP2 DUP4 ADD MSTORE DUP4 MLOAD SWAP2 SWAP3 DUP4 SWAP3 SWAP1 DUP4 ADD SWAP2 DUP6 ADD SWAP1 DUP1 DUP4 DUP4 PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0xBB JUMPI DUP2 DUP2 ADD MLOAD DUP4 DUP3 ADD MSTORE PUSH1 0x20 ADD PUSH2 0xA3 JUMP JUMPDEST POP POP POP POP SWAP1 POP SWAP1 DUP2 ADD SWAP1 PUSH1 0x1F AND DUP1 ISZERO PUSH2 0xE8 JUMPI DUP1 DUP3 SUB DUP1 MLOAD PUSH1 0x1 DUP4 PUSH1 0x20 SUB PUSH2 0x100 EXP SUB NOT AND DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP JUMPDEST POP SWAP3 POP POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x102 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x6A PUSH2 0x1DD JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER EQ ISZERO PUSH2 0x146 JUMPI PUSH1 0x0 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SELFDESTRUCT JUMPDEST JUMP JUMPDEST PUSH1 0x1 DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 DUP8 DUP10 AND ISZERO MUL ADD SWAP1 SWAP6 AND SWAP5 SWAP1 SWAP5 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x1D3 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x1A8 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x1D3 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x1B6 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF NOT AND CALLER OR SWAP1 SSTORE JUMP INVALID LOG1 PUSH6 0x627A7A723058 KECCAK256 0x4f 0xac 0xb1 0xe SWAP10 0x47 LT 0x2c CALLCODE 0x22 SWAP12 PUSH2 0x5BCB PUSH15 0xA700A6F361F5D538C2D88968E5D683 0xa7 0x24 STOP 0x29 ","sourceMap":"48:357:0:-;;;207:81;8:9:-1;5:2;;;30:1;27;20:12;5:2;207:81:0;;;;;;;;;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;207:81:0;;;;;;19:11:-1;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;213:10;;261:11;244:29;;285:43;;;282:58;-1:-1;233:115;230:2;;;361:1;358;351:12;230:2;-1:-1;;261:20:0;;207:81;;-1:-1:-1;261:20:0;;-1:-1:-1;261:8:0;;-1:-1:-1;261:20:0;;;;;:::i;:::-;;207:81;48:357;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48:357:0;;;-1:-1:-1;48:357:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;"},"gasEstimates":{"creation":{"codeDepositCost":"110800","executionCost":"infinite","totalCost":"infinite"},"external":{"greet()":"infinite","kill()":"30554","mortal()":"20391"}}},"userdoc":{"methods":{}}}},"mortal.sol":{"Mortal":{"abi":[{"constant":false,"inputs":[],"name":"kill","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"mortal","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}],"devdoc":{"methods":{}},"evm":{"bytecode":{"linkReferences":{},"object":"608060405234801561001057600080fd5b5060f68061001f6000396000f3fe6080604052600436106042577c0100000000000000000000000000000000000000000000000000000000600035046341c0e1b581146047578063f1eae25c14605b575b600080fd5b348015605257600080fd5b506059606d565b005b348015606657600080fd5b50605960a9565b60005473ffffffffffffffffffffffffffffffffffffffff1633141560a75760005473ffffffffffffffffffffffffffffffffffffffff16ff5b565b6000805473ffffffffffffffffffffffffffffffffffffffff19163317905556fea165627a7a723058202fa44a046431e1ea51812cc2435e0901709b4920acdb8e369afed97820ea8bdb0029","opcodes":"PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0xF6 DUP1 PUSH2 0x1F PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH1 0x42 JUMPI PUSH29 0x100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 CALLDATALOAD DIV PUSH4 0x41C0E1B5 DUP2 EQ PUSH1 0x47 JUMPI DUP1 PUSH4 0xF1EAE25C EQ PUSH1 0x5B JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH1 0x52 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x59 PUSH1 0x6D JUMP JUMPDEST STOP JUMPDEST CALLVALUE DUP1 ISZERO PUSH1 0x66 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x59 PUSH1 0xA9 JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER EQ ISZERO PUSH1 0xA7 JUMPI PUSH1 0x0 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SELFDESTRUCT JUMPDEST JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF NOT AND CALLER OR SWAP1 SSTORE JUMP INVALID LOG1 PUSH6 0x627A7A723058 KECCAK256 0x2f LOG4 0x4a DIV PUSH5 0x31E1EA5181 0x2c 0xc2 NUMBER 0x5e MULMOD ADD PUSH17 0x9B4920ACDB8E369AFED97820EA8BDB0029 ","sourceMap":"25:375:1:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25:375:1;;;;;;;"},"gasEstimates":{"creation":{"codeDepositCost":"49200","executionCost":"99","totalCost":"49299"},"external":{"kill()":"30554","mortal()":"20369"}}},"userdoc":{"methods":{}}}}},"sources":{"greeter.sol":{"id":0,"legacyAST":{"attributes":{"absolutePath":"greeter.sol","exportedSymbols":{"Greeter":[25]}},"children":[{"attributes":{"literals":["solidity","^","0.5",".0"]},"id":1,"name":"PragmaDirective","src":"0:23:0"},{"attributes":{"SourceUnit":53,"absolutePath":"mortal.sol","file":"./mortal.sol","scope":26,"symbolAliases":[null],"unitAlias":""},"id":2,"name":"ImportDirective","src":"24:22:0"},{"attributes":{"contractDependencies":[52],"contractKind":"contract","documentation":null,"fullyImplemented":true,"linearizedBaseContracts":[25,52],"name":"Greeter","scope":26},"children":[{"attributes":{"arguments":null},"children":[{"attributes":{"contractScope":null,"name":"Mortal","referencedDeclaration":52,"type":"contract Mortal"},"id":3,"name":"UserDefinedTypeName","src":"68:6:0"}],"id":4,"name":"InheritanceSpecifier","src":"68:6:0"},{"attributes":{"constant":false,"name":"greeting","scope":25,"stateVariable":true,"storageLocation":"default","type":"string","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string"},"id":5,"name":"ElementaryTypeName","src":"135:6:0"}],"id":6,"name":"VariableDeclaration","src":"135:15:0"},{"attributes":{"documentation":null,"implemented":true,"isConstructor":true,"kind":"constructor","modifiers":[null],"name":"","scope":25,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_greeting","scope":16,"stateVariable":false,"storageLocation":"memory","type":"string","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string"},"id":7,"name":"ElementaryTypeName","src":"219:6:0"}],"id":8,"name":"VariableDeclaration","src":"219:23:0"}],"id":9,"name":"ParameterList","src":"218:25:0"},{"attributes":{"parameters":[null]},"children":[],"id":10,"name":"ParameterList","src":"251:0:0"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"string storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":6,"type":"string storage ref","value":"greeting"},"id":11,"name":"Identifier","src":"261:8:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":8,"type":"string memory","value":"_greeting"},"id":12,"name":"Identifier","src":"272:9:0"}],"id":13,"name":"Assignment","src":"261:20:0"}],"id":14,"name":"ExpressionStatement","src":"261:20:0"}],"id":15,"name":"Block","src":"251:37:0"}],"id":16,"name":"FunctionDefinition","src":"207:81:0"},{"attributes":{"documentation":null,"implemented":true,"isConstructor":false,"kind":"function","modifiers":[null],"name":"greet","scope":25,"stateMutability":"view","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":17,"name":"ParameterList","src":"332:2:0"},{"children":[{"attributes":{"constant":false,"name":"","scope":24,"stateVariable":false,"storageLocation":"memory","type":"string","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string"},"id":18,"name":"ElementaryTypeName","src":"356:6:0"}],"id":19,"name":"VariableDeclaration","src":"356:13:0"}],"id":20,"name":"ParameterList","src":"355:15:0"},{"children":[{"attributes":{"functionReturnParameters":20},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":6,"type":"string storage ref","value":"greeting"},"id":21,"name":"Identifier","src":"388:8:0"}],"id":22,"name":"Return","src":"381:15:0"}],"id":23,"name":"Block","src":"371:32:0"}],"id":24,"name":"FunctionDefinition","src":"318:85:0"}],"id":25,"name":"ContractDefinition","src":"48:357:0"}],"id":26,"name":"SourceUnit","src":"0:406:0"}},"mortal.sol":{"id":1,"legacyAST":{"attributes":{"absolutePath":"mortal.sol","exportedSymbols":{"Mortal":[52]}},"children":[{"attributes":{"literals":["solidity","^","0.5",".0"]},"id":27,"name":"PragmaDirective","src":"0:23:1"},{"attributes":{"baseContracts":[null],"contractDependencies":[null],"contractKind":"contract","documentation":null,"fullyImplemented":true,"linearizedBaseContracts":[52],"name":"Mortal","scope":53},"children":[{"attributes":{"constant":false,"name":"owner","scope":52,"stateVariable":true,"storageLocation":"default","type":"address payable","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","stateMutability":"payable","type":"address payable"},"id":28,"name":"ElementaryTypeName","src":"99:15:1"}],"id":29,"name":"VariableDeclaration","src":"99:21:1"},{"attributes":{"documentation":null,"implemented":true,"isConstructor":false,"kind":"function","modifiers":[null],"name":"mortal","scope":52,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":30,"name":"ParameterList","src":"231:2:1"},{"attributes":{"parameters":[null]},"children":[],"id":31,"name":"ParameterList","src":"241:0:1"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"address payable"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":29,"type":"address payable","value":"owner"},"id":32,"name":"Identifier","src":"243:5:1"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address payable"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":67,"type":"msg","value":"msg"},"id":33,"name":"Identifier","src":"251:3:1"}],"id":34,"name":"MemberAccess","src":"251:10:1"}],"id":35,"name":"Assignment","src":"243:18:1"}],"id":36,"name":"ExpressionStatement","src":"243:18:1"}],"id":37,"name":"Block","src":"241:23:1"}],"id":38,"name":"FunctionDefinition","src":"216:48:1"},{"attributes":{"documentation":null,"implemented":true,"isConstructor":false,"kind":"function","modifiers":[null],"name":"kill","scope":52,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":39,"name":"ParameterList","src":"339:2:1"},{"attributes":{"parameters":[null]},"children":[],"id":40,"name":"ParameterList","src":"349:0:1"},{"children":[{"attributes":{"falseBody":null},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address_payable","typeString":"address payable"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"==","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address payable"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":67,"type":"msg","value":"msg"},"id":41,"name":"Identifier","src":"355:3:1"}],"id":42,"name":"MemberAccess","src":"355:10:1"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":29,"type":"address payable","value":"owner"},"id":43,"name":"Identifier","src":"369:5:1"}],"id":44,"name":"BinaryOperation","src":"355:19:1"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address_payable","typeString":"address payable"}],"overloadedDeclarations":[null],"referencedDeclaration":75,"type":"function (address payable)","value":"selfdestruct"},"id":45,"name":"Identifier","src":"376:12:1"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":29,"type":"address payable","value":"owner"},"id":46,"name":"Identifier","src":"389:5:1"}],"id":47,"name":"FunctionCall","src":"376:19:1"}],"id":48,"name":"ExpressionStatement","src":"376:19:1"}],"id":49,"name":"IfStatement","src":"351:44:1"}],"id":50,"name":"Block","src":"349:49:1"}],"id":51,"name":"FunctionDefinition","src":"326:72:1"}],"id":52,"name":"ContractDefinition","src":"25:375:1"}],"id":53,"name":"SourceUnit","src":"0:401:1"}}}}`) }) }) @@ -137,8 +137,8 @@ describe('testRunner', function () { throw e }) }) - it('should not match file not found error msg', function () { - const msg = `{"contracts":{"greeter.sol":{"Greeter":{"abi":[{"constant":false,"inputs":[],"name":"kill","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"greet","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"mortal","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_greeting","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"}],"devdoc":{"methods":{}},"evm":{"bytecode":{"linkReferences":{},"object":"608060405234801561001057600080fd5b506040516103733803806103738339810180604052602081101561003357600080fd5b81019080805164010000000081111561004b57600080fd5b8201602081018481111561005e57600080fd5b815164010000000081118282018710171561007857600080fd5b505080519093506100929250600191506020840190610099565b5050610134565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100da57805160ff1916838001178555610107565b82800160010185558215610107579182015b828111156101075782518255916020019190600101906100ec565b50610113929150610117565b5090565b61013191905b80821115610113576000815560010161011d565b90565b610230806101436000396000f3fe6080604052600436106100565763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166341c0e1b5811461005b578063cfae321714610072578063f1eae25c146100fc575b600080fd5b34801561006757600080fd5b50610070610111565b005b34801561007e57600080fd5b5061008761014e565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100c15781810151838201526020016100a9565b50505050905090810190601f1680156100ee5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561010857600080fd5b506100706101e3565b60005473ffffffffffffffffffffffffffffffffffffffff1633141561014c5760005473ffffffffffffffffffffffffffffffffffffffff16ff5b565b60018054604080516020601f600260001961010087891615020190951694909404938401819004810282018101909252828152606093909290918301828280156101d95780601f106101ae576101008083540402835291602001916101d9565b820191906000526020600020905b8154815290600101906020018083116101bc57829003601f168201915b5050505050905090565b6000805473ffffffffffffffffffffffffffffffffffffffff19163317905556fea165627a7a72305820219247b0f7e46da9d88f6a333d70c1cab030925efd29dccd57f97606a232a7530029","opcodes":"PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD PUSH2 0x373 CODESIZE SUB DUP1 PUSH2 0x373 DUP4 CODECOPY DUP2 ADD DUP1 PUSH1 0x40 MSTORE PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x33 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 DUP1 DUP1 MLOAD PUSH5 0x100000000 DUP2 GT ISZERO PUSH2 0x4B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 ADD PUSH1 0x20 DUP2 ADD DUP5 DUP2 GT ISZERO PUSH2 0x5E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 MLOAD PUSH5 0x100000000 DUP2 GT DUP3 DUP3 ADD DUP8 LT OR ISZERO PUSH2 0x78 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP DUP1 MLOAD SWAP1 SWAP4 POP PUSH2 0x92 SWAP3 POP PUSH1 0x1 SWAP2 POP PUSH1 0x20 DUP5 ADD SWAP1 PUSH2 0x99 JUMP JUMPDEST POP POP PUSH2 0x134 JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH1 0x1F LT PUSH2 0xDA JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH2 0x107 JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH2 0x107 JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0x107 JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0xEC JUMP JUMPDEST POP PUSH2 0x113 SWAP3 SWAP2 POP PUSH2 0x117 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH2 0x131 SWAP2 SWAP1 JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0x113 JUMPI PUSH1 0x0 DUP2 SSTORE PUSH1 0x1 ADD PUSH2 0x11D JUMP JUMPDEST SWAP1 JUMP JUMPDEST PUSH2 0x230 DUP1 PUSH2 0x143 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH2 0x56 JUMPI PUSH4 0xFFFFFFFF PUSH29 0x100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 CALLDATALOAD DIV AND PUSH4 0x41C0E1B5 DUP2 EQ PUSH2 0x5B JUMPI DUP1 PUSH4 0xCFAE3217 EQ PUSH2 0x72 JUMPI DUP1 PUSH4 0xF1EAE25C EQ PUSH2 0xFC JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x67 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x70 PUSH2 0x111 JUMP JUMPDEST STOP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x7E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x87 PUSH2 0x14E JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 DUP1 DUP3 MSTORE DUP4 MLOAD DUP2 DUP4 ADD MSTORE DUP4 MLOAD SWAP2 SWAP3 DUP4 SWAP3 SWAP1 DUP4 ADD SWAP2 DUP6 ADD SWAP1 DUP1 DUP4 DUP4 PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0xC1 JUMPI DUP2 DUP2 ADD MLOAD DUP4 DUP3 ADD MSTORE PUSH1 0x20 ADD PUSH2 0xA9 JUMP JUMPDEST POP POP POP POP SWAP1 POP SWAP1 DUP2 ADD SWAP1 PUSH1 0x1F AND DUP1 ISZERO PUSH2 0xEE JUMPI DUP1 DUP3 SUB DUP1 MLOAD PUSH1 0x1 DUP4 PUSH1 0x20 SUB PUSH2 0x100 EXP SUB NOT AND DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP JUMPDEST POP SWAP3 POP POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x108 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x70 PUSH2 0x1E3 JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER EQ ISZERO PUSH2 0x14C JUMPI PUSH1 0x0 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SELFDESTRUCT JUMPDEST JUMP JUMPDEST PUSH1 0x1 DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 DUP8 DUP10 AND ISZERO MUL ADD SWAP1 SWAP6 AND SWAP5 SWAP1 SWAP5 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x1D9 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x1AE JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x1D9 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x1BC JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF NOT AND CALLER OR SWAP1 SSTORE JUMP INVALID LOG1 PUSH6 0x627A7A723058 KECCAK256 0x21 SWAP3 0x47 0xb0 0xf7 0xe4 PUSH14 0xA9D88F6A333D70C1CAB030925EFD 0x29 0xdc 0xcd JUMPI 0xf9 PUSH23 0x6A232A753002900000000000000000000000000000000 ","sourceMap":"48:357:0:-;;;207:81;8:9:-1;5:2;;;30:1;27;20:12;5:2;207:81:0;;;;;;;;;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;207:81:0;;;;;;19:11:-1;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;213:10;;261:11;244:29;;285:43;;;282:58;-1:-1;233:115;230:2;;;361:1;358;351:12;230:2;-1:-1;;261:20:0;;207:81;;-1:-1:-1;261:20:0;;-1:-1:-1;261:8:0;;-1:-1:-1;261:20:0;;;;;:::i;:::-;;207:81;48:357;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48:357:0;;;-1:-1:-1;48:357:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;"},"gasEstimates":{"creation":{"codeDepositCost":"112000","executionCost":"infinite","totalCost":"infinite"},"external":{"greet()":"infinite","kill()":"30560","mortal()":"20397"}}},"userdoc":{"methods":{}}}},"mortal.sol":{"Mortal":{"abi":[{"constant":false,"inputs":[],"name":"kill","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"mortal","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}],"devdoc":{"methods":{}},"evm":{"bytecode":{"linkReferences":{},"object":"608060405234801561001057600080fd5b5060fc8061001f6000396000f3fe60806040526004361060485763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166341c0e1b58114604d578063f1eae25c146061575b600080fd5b348015605857600080fd5b50605f6073565b005b348015606c57600080fd5b50605f60af565b60005473ffffffffffffffffffffffffffffffffffffffff1633141560ad5760005473ffffffffffffffffffffffffffffffffffffffff16ff5b565b6000805473ffffffffffffffffffffffffffffffffffffffff19163317905556fea165627a7a723058203403979ec65509fedd999f7464440863faa25a2acaabd8dc0d01fa3aaeaee4400029","opcodes":"PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0xFC DUP1 PUSH2 0x1F PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH1 0x48 JUMPI PUSH4 0xFFFFFFFF PUSH29 0x100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 CALLDATALOAD DIV AND PUSH4 0x41C0E1B5 DUP2 EQ PUSH1 0x4D JUMPI DUP1 PUSH4 0xF1EAE25C EQ PUSH1 0x61 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH1 0x58 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x5F PUSH1 0x73 JUMP JUMPDEST STOP JUMPDEST CALLVALUE DUP1 ISZERO PUSH1 0x6C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x5F PUSH1 0xAF JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER EQ ISZERO PUSH1 0xAD JUMPI PUSH1 0x0 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SELFDESTRUCT JUMPDEST JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF NOT AND CALLER OR SWAP1 SSTORE JUMP INVALID LOG1 PUSH6 0x627A7A723058 KECCAK256 CALLVALUE SUB SWAP8 SWAP15 0xc6 SSTORE MULMOD INVALID 0xdd SWAP10 SWAP16 PUSH21 0x64440863FAA25A2ACAABD8DC0D01FA3AAEAEE44000 0x29 ","sourceMap":"25:375:1:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25:375:1;;;;;;;"},"gasEstimates":{"creation":{"codeDepositCost":"50400","executionCost":"99","totalCost":"50499"},"external":{"kill()":"30560","mortal()":"20375"}}},"userdoc":{"methods":{}}}}},"sources":{"greeter.sol":{"ast":{"absolutePath":"greeter.sol","exportedSymbols":{"Greeter":[25]},"id":26,"nodeType":"SourceUnit","nodes":[{"id":1,"literals":["solidity","^","0.5",".0"],"nodeType":"PragmaDirective","src":"0:23:0"},{"absolutePath":"mortal.sol","file":"./mortal.sol","id":2,"nodeType":"ImportDirective","scope":26,"sourceUnit":53,"src":"24:22:0","symbolAliases":[],"unitAlias":""},{"baseContracts":[{"arguments":null,"baseName":{"contractScope":null,"id":3,"name":"Mortal","nodeType":"UserDefinedTypeName","referencedDeclaration":52,"src":"68:6:0","typeDescriptions":{"typeIdentifier":"t_contract$_Mortal_$52","typeString":"contract Mortal"}},"id":4,"nodeType":"InheritanceSpecifier","src":"68:6:0"}],"contractDependencies":[52],"contractKind":"contract","documentation":null,"fullyImplemented":true,"id":25,"linearizedBaseContracts":[25,52],"name":"Greeter","nodeType":"ContractDefinition","nodes":[{"constant":false,"id":6,"name":"greeting","nodeType":"VariableDeclaration","scope":25,"src":"135:15:0","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_string_storage","typeString":"string"},"typeName":{"id":5,"name":"string","nodeType":"ElementaryTypeName","src":"135:6:0","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"value":null,"visibility":"internal"},{"body":{"id":15,"nodeType":"Block","src":"251:37:0","statements":[{"expression":{"argumentTypes":null,"id":13,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"id":11,"name":"greeting","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":6,"src":"261:8:0","typeDescriptions":{"typeIdentifier":"t_string_storage","typeString":"string storage ref"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"id":12,"name":"_greeting","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":8,"src":"272:9:0","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}},"src":"261:20:0","typeDescriptions":{"typeIdentifier":"t_string_storage","typeString":"string storage ref"}},"id":14,"nodeType":"ExpressionStatement","src":"261:20:0"}]},"documentation":null,"id":16,"implemented":true,"kind":"constructor","modifiers":[],"name":"","nodeType":"FunctionDefinition","parameters":{"id":9,"nodeType":"ParameterList","parameters":[{"constant":false,"id":8,"name":"_greeting","nodeType":"VariableDeclaration","scope":16,"src":"219:23:0","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":7,"name":"string","nodeType":"ElementaryTypeName","src":"219:6:0","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"value":null,"visibility":"internal"}],"src":"218:25:0"},"returnParameters":{"id":10,"nodeType":"ParameterList","parameters":[],"src":"251:0:0"},"scope":25,"src":"207:81:0","stateMutability":"nonpayable","superFunction":null,"visibility":"public"},{"body":{"id":23,"nodeType":"Block","src":"371:32:0","statements":[{"expression":{"argumentTypes":null,"id":21,"name":"greeting","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":6,"src":"388:8:0","typeDescriptions":{"typeIdentifier":"t_string_storage","typeString":"string storage ref"}},"functionReturnParameters":20,"id":22,"nodeType":"Return","src":"381:15:0"}]},"documentation":null,"id":24,"implemented":true,"kind":"function","modifiers":[],"name":"greet","nodeType":"FunctionDefinition","parameters":{"id":17,"nodeType":"ParameterList","parameters":[],"src":"332:2:0"},"returnParameters":{"id":20,"nodeType":"ParameterList","parameters":[{"constant":false,"id":19,"name":"","nodeType":"VariableDeclaration","scope":24,"src":"356:13:0","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":18,"name":"string","nodeType":"ElementaryTypeName","src":"356:6:0","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"value":null,"visibility":"internal"}],"src":"355:15:0"},"scope":25,"src":"318:85:0","stateMutability":"view","superFunction":null,"visibility":"public"}],"scope":26,"src":"48:357:0"}],"src":"0:406:0"},"id":0,"legacyAST":{"attributes":{"absolutePath":"greeter.sol","exportedSymbols":{"Greeter":[25]}},"children":[{"attributes":{"literals":["solidity","^","0.5",".0"]},"id":1,"name":"PragmaDirective","src":"0:23:0"},{"attributes":{"SourceUnit":53,"absolutePath":"mortal.sol","file":"./mortal.sol","scope":26,"symbolAliases":[null],"unitAlias":""},"id":2,"name":"ImportDirective","src":"24:22:0"},{"attributes":{"contractDependencies":[52],"contractKind":"contract","documentation":null,"fullyImplemented":true,"linearizedBaseContracts":[25,52],"name":"Greeter","scope":26},"children":[{"attributes":{"arguments":null},"children":[{"attributes":{"contractScope":null,"name":"Mortal","referencedDeclaration":52,"type":"contract Mortal"},"id":3,"name":"UserDefinedTypeName","src":"68:6:0"}],"id":4,"name":"InheritanceSpecifier","src":"68:6:0"},{"attributes":{"constant":false,"name":"greeting","scope":25,"stateVariable":true,"storageLocation":"default","type":"string","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string"},"id":5,"name":"ElementaryTypeName","src":"135:6:0"}],"id":6,"name":"VariableDeclaration","src":"135:15:0"},{"attributes":{"documentation":null,"implemented":true,"isConstructor":true,"kind":"constructor","modifiers":[null],"name":"","scope":25,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_greeting","scope":16,"stateVariable":false,"storageLocation":"memory","type":"string","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string"},"id":7,"name":"ElementaryTypeName","src":"219:6:0"}],"id":8,"name":"VariableDeclaration","src":"219:23:0"}],"id":9,"name":"ParameterList","src":"218:25:0"},{"attributes":{"parameters":[null]},"children":[],"id":10,"name":"ParameterList","src":"251:0:0"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"string storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":6,"type":"string storage ref","value":"greeting"},"id":11,"name":"Identifier","src":"261:8:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":8,"type":"string memory","value":"_greeting"},"id":12,"name":"Identifier","src":"272:9:0"}],"id":13,"name":"Assignment","src":"261:20:0"}],"id":14,"name":"ExpressionStatement","src":"261:20:0"}],"id":15,"name":"Block","src":"251:37:0"}],"id":16,"name":"FunctionDefinition","src":"207:81:0"},{"attributes":{"documentation":null,"implemented":true,"isConstructor":false,"kind":"function","modifiers":[null],"name":"greet","scope":25,"stateMutability":"view","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":17,"name":"ParameterList","src":"332:2:0"},{"children":[{"attributes":{"constant":false,"name":"","scope":24,"stateVariable":false,"storageLocation":"memory","type":"string","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string"},"id":18,"name":"ElementaryTypeName","src":"356:6:0"}],"id":19,"name":"VariableDeclaration","src":"356:13:0"}],"id":20,"name":"ParameterList","src":"355:15:0"},{"children":[{"attributes":{"functionReturnParameters":20},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":6,"type":"string storage ref","value":"greeting"},"id":21,"name":"Identifier","src":"388:8:0"}],"id":22,"name":"Return","src":"381:15:0"}],"id":23,"name":"Block","src":"371:32:0"}],"id":24,"name":"FunctionDefinition","src":"318:85:0"}],"id":25,"name":"ContractDefinition","src":"48:357:0"}],"id":26,"name":"SourceUnit","src":"0:406:0"}},"mortal.sol":{"ast":{"absolutePath":"mortal.sol","exportedSymbols":{"Mortal":[52]},"id":53,"nodeType":"SourceUnit","nodes":[{"id":27,"literals":["solidity","^","0.5",".0"],"nodeType":"PragmaDirective","src":"0:23:1"},{"baseContracts":[],"contractDependencies":[],"contractKind":"contract","documentation":null,"fullyImplemented":true,"id":52,"linearizedBaseContracts":[52],"name":"Mortal","nodeType":"ContractDefinition","nodes":[{"constant":false,"id":29,"name":"owner","nodeType":"VariableDeclaration","scope":52,"src":"99:21:1","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"},"typeName":{"id":28,"name":"address","nodeType":"ElementaryTypeName","src":"99:15:1","stateMutability":"payable","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},"value":null,"visibility":"internal"},{"body":{"id":37,"nodeType":"Block","src":"241:23:1","statements":[{"expression":{"argumentTypes":null,"id":35,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"id":32,"name":"owner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":29,"src":"243:5:1","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":33,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":67,"src":"251:3:1","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":34,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"sender","nodeType":"MemberAccess","referencedDeclaration":null,"src":"251:10:1","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},"src":"243:18:1","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},"id":36,"nodeType":"ExpressionStatement","src":"243:18:1"}]},"documentation":null,"id":38,"implemented":true,"kind":"function","modifiers":[],"name":"mortal","nodeType":"FunctionDefinition","parameters":{"id":30,"nodeType":"ParameterList","parameters":[],"src":"231:2:1"},"returnParameters":{"id":31,"nodeType":"ParameterList","parameters":[],"src":"241:0:1"},"scope":52,"src":"216:48:1","stateMutability":"nonpayable","superFunction":null,"visibility":"public"},{"body":{"id":50,"nodeType":"Block","src":"349:49:1","statements":[{"condition":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address_payable","typeString":"address payable"},"id":44,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":41,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":67,"src":"355:3:1","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":42,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"sender","nodeType":"MemberAccess","referencedDeclaration":null,"src":"355:10:1","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"argumentTypes":null,"id":43,"name":"owner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":29,"src":"369:5:1","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},"src":"355:19:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":null,"id":49,"nodeType":"IfStatement","src":"351:44:1","trueBody":{"expression":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":46,"name":"owner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":29,"src":"389:5:1","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address_payable","typeString":"address payable"}],"id":45,"name":"selfdestruct","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":75,"src":"376:12:1","typeDescriptions":{"typeIdentifier":"t_function_selfdestruct_nonpayable$_t_address_payable_$returns$__$","typeString":"function (address payable)"}},"id":47,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"376:19:1","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":48,"nodeType":"ExpressionStatement","src":"376:19:1"}}]},"documentation":null,"id":51,"implemented":true,"kind":"function","modifiers":[],"name":"kill","nodeType":"FunctionDefinition","parameters":{"id":39,"nodeType":"ParameterList","parameters":[],"src":"339:2:1"},"returnParameters":{"id":40,"nodeType":"ParameterList","parameters":[],"src":"349:0:1"},"scope":52,"src":"326:72:1","stateMutability":"nonpayable","superFunction":null,"visibility":"public"}],"scope":53,"src":"25:375:1"}],"src":"0:401:1"},"id":1,"legacyAST":{"attributes":{"absolutePath":"mortal.sol","exportedSymbols":{"Mortal":[52]}},"children":[{"attributes":{"literals":["solidity","^","0.5",".0"]},"id":27,"name":"PragmaDirective","src":"0:23:1"},{"attributes":{"baseContracts":[null],"contractDependencies":[null],"contractKind":"contract","documentation":null,"fullyImplemented":true,"linearizedBaseContracts":[52],"name":"Mortal","scope":53},"children":[{"attributes":{"constant":false,"name":"owner","scope":52,"stateVariable":true,"storageLocation":"default","type":"address payable","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","stateMutability":"payable","type":"address payable"},"id":28,"name":"ElementaryTypeName","src":"99:15:1"}],"id":29,"name":"VariableDeclaration","src":"99:21:1"},{"attributes":{"documentation":null,"implemented":true,"isConstructor":false,"kind":"function","modifiers":[null],"name":"mortal","scope":52,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":30,"name":"ParameterList","src":"231:2:1"},{"attributes":{"parameters":[null]},"children":[],"id":31,"name":"ParameterList","src":"241:0:1"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"address payable"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":29,"type":"address payable","value":"owner"},"id":32,"name":"Identifier","src":"243:5:1"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address payable"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":67,"type":"msg","value":"msg"},"id":33,"name":"Identifier","src":"251:3:1"}],"id":34,"name":"MemberAccess","src":"251:10:1"}],"id":35,"name":"Assignment","src":"243:18:1"}],"id":36,"name":"ExpressionStatement","src":"243:18:1"}],"id":37,"name":"Block","src":"241:23:1"}],"id":38,"name":"FunctionDefinition","src":"216:48:1"},{"attributes":{"documentation":null,"implemented":true,"isConstructor":false,"kind":"function","modifiers":[null],"name":"kill","scope":52,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":39,"name":"ParameterList","src":"339:2:1"},{"attributes":{"parameters":[null]},"children":[],"id":40,"name":"ParameterList","src":"349:0:1"},{"children":[{"attributes":{"falseBody":null},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address_payable","typeString":"address payable"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"==","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address payable"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":67,"type":"msg","value":"msg"},"id":41,"name":"Identifier","src":"355:3:1"}],"id":42,"name":"MemberAccess","src":"355:10:1"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":29,"type":"address payable","value":"owner"},"id":43,"name":"Identifier","src":"369:5:1"}],"id":44,"name":"BinaryOperation","src":"355:19:1"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address_payable","typeString":"address payable"}],"overloadedDeclarations":[null],"referencedDeclaration":75,"type":"function (address payable)","value":"selfdestruct"},"id":45,"name":"Identifier","src":"376:12:1"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":29,"type":"address payable","value":"owner"},"id":46,"name":"Identifier","src":"389:5:1"}],"id":47,"name":"FunctionCall","src":"376:19:1"}],"id":48,"name":"ExpressionStatement","src":"376:19:1"}],"id":49,"name":"IfStatement","src":"351:44:1"}],"id":50,"name":"Block","src":"349:49:1"}],"id":51,"name":"FunctionDefinition","src":"326:72:1"}],"id":52,"name":"ContractDefinition","src":"25:375:1"}],"id":53,"name":"SourceUnit","src":"0:401:1"}}}}` + it('should match compiled result', function () { + const msg = `{"contracts":{"greeter.sol":{"Greeter":{"abi":[{"constant":false,"inputs":[],"name":"kill","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"greet","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"mortal","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_greeting","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"}],"devdoc":{"methods":{}},"evm":{"bytecode":{"linkReferences":{},"object":"608060405234801561001057600080fd5b5060405161036d38038061036d8339810180604052602081101561003357600080fd5b81019080805164010000000081111561004b57600080fd5b8201602081018481111561005e57600080fd5b815164010000000081118282018710171561007857600080fd5b505080519093506100929250600191506020840190610099565b5050610134565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100da57805160ff1916838001178555610107565b82800160010185558215610107579182015b828111156101075782518255916020019190600101906100ec565b50610113929150610117565b5090565b61013191905b80821115610113576000815560010161011d565b90565b61022a806101436000396000f3fe608060405260043610610050577c0100000000000000000000000000000000000000000000000000000000600035046341c0e1b58114610055578063cfae32171461006c578063f1eae25c146100f6575b600080fd5b34801561006157600080fd5b5061006a61010b565b005b34801561007857600080fd5b50610081610148565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100bb5781810151838201526020016100a3565b50505050905090810190601f1680156100e85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561010257600080fd5b5061006a6101dd565b60005473ffffffffffffffffffffffffffffffffffffffff163314156101465760005473ffffffffffffffffffffffffffffffffffffffff16ff5b565b60018054604080516020601f600260001961010087891615020190951694909404938401819004810282018101909252828152606093909290918301828280156101d35780601f106101a8576101008083540402835291602001916101d3565b820191906000526020600020905b8154815290600101906020018083116101b657829003601f168201915b5050505050905090565b6000805473ffffffffffffffffffffffffffffffffffffffff19163317905556fea165627a7a723058204facb10e9947102cf2229b615bcb6ea700a6f361f5d538c2d88968e5d683a7240029","opcodes":"PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD PUSH2 0x36D CODESIZE SUB DUP1 PUSH2 0x36D DUP4 CODECOPY DUP2 ADD DUP1 PUSH1 0x40 MSTORE PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x33 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 DUP1 DUP1 MLOAD PUSH5 0x100000000 DUP2 GT ISZERO PUSH2 0x4B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 ADD PUSH1 0x20 DUP2 ADD DUP5 DUP2 GT ISZERO PUSH2 0x5E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 MLOAD PUSH5 0x100000000 DUP2 GT DUP3 DUP3 ADD DUP8 LT OR ISZERO PUSH2 0x78 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP DUP1 MLOAD SWAP1 SWAP4 POP PUSH2 0x92 SWAP3 POP PUSH1 0x1 SWAP2 POP PUSH1 0x20 DUP5 ADD SWAP1 PUSH2 0x99 JUMP JUMPDEST POP POP PUSH2 0x134 JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH1 0x1F LT PUSH2 0xDA JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH2 0x107 JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH2 0x107 JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0x107 JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0xEC JUMP JUMPDEST POP PUSH2 0x113 SWAP3 SWAP2 POP PUSH2 0x117 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH2 0x131 SWAP2 SWAP1 JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0x113 JUMPI PUSH1 0x0 DUP2 SSTORE PUSH1 0x1 ADD PUSH2 0x11D JUMP JUMPDEST SWAP1 JUMP JUMPDEST PUSH2 0x22A DUP1 PUSH2 0x143 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH2 0x50 JUMPI PUSH29 0x100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 CALLDATALOAD DIV PUSH4 0x41C0E1B5 DUP2 EQ PUSH2 0x55 JUMPI DUP1 PUSH4 0xCFAE3217 EQ PUSH2 0x6C JUMPI DUP1 PUSH4 0xF1EAE25C EQ PUSH2 0xF6 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x61 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x6A PUSH2 0x10B JUMP JUMPDEST STOP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x78 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x81 PUSH2 0x148 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 DUP1 DUP3 MSTORE DUP4 MLOAD DUP2 DUP4 ADD MSTORE DUP4 MLOAD SWAP2 SWAP3 DUP4 SWAP3 SWAP1 DUP4 ADD SWAP2 DUP6 ADD SWAP1 DUP1 DUP4 DUP4 PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0xBB JUMPI DUP2 DUP2 ADD MLOAD DUP4 DUP3 ADD MSTORE PUSH1 0x20 ADD PUSH2 0xA3 JUMP JUMPDEST POP POP POP POP SWAP1 POP SWAP1 DUP2 ADD SWAP1 PUSH1 0x1F AND DUP1 ISZERO PUSH2 0xE8 JUMPI DUP1 DUP3 SUB DUP1 MLOAD PUSH1 0x1 DUP4 PUSH1 0x20 SUB PUSH2 0x100 EXP SUB NOT AND DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP JUMPDEST POP SWAP3 POP POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x102 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x6A PUSH2 0x1DD JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER EQ ISZERO PUSH2 0x146 JUMPI PUSH1 0x0 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SELFDESTRUCT JUMPDEST JUMP JUMPDEST PUSH1 0x1 DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 DUP8 DUP10 AND ISZERO MUL ADD SWAP1 SWAP6 AND SWAP5 SWAP1 SWAP5 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x1D3 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x1A8 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x1D3 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x1B6 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF NOT AND CALLER OR SWAP1 SSTORE JUMP INVALID LOG1 PUSH6 0x627A7A723058 KECCAK256 0x4f 0xac 0xb1 0xe SWAP10 0x47 LT 0x2c CALLCODE 0x22 SWAP12 PUSH2 0x5BCB PUSH15 0xA700A6F361F5D538C2D88968E5D683 0xa7 0x24 STOP 0x29 ","sourceMap":"48:357:0:-;;;207:81;8:9:-1;5:2;;;30:1;27;20:12;5:2;207:81:0;;;;;;;;;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;207:81:0;;;;;;19:11:-1;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;213:10;;261:11;244:29;;285:43;;;282:58;-1:-1;233:115;230:2;;;361:1;358;351:12;230:2;-1:-1;;261:20:0;;207:81;;-1:-1:-1;261:20:0;;-1:-1:-1;261:8:0;;-1:-1:-1;261:20:0;;;;;:::i;:::-;;207:81;48:357;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48:357:0;;;-1:-1:-1;48:357:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;"},"gasEstimates":{"creation":{"codeDepositCost":"110800","executionCost":"infinite","totalCost":"infinite"},"external":{"greet()":"infinite","kill()":"30554","mortal()":"20391"}}},"userdoc":{"methods":{}}}},"mortal.sol":{"Mortal":{"abi":[{"constant":false,"inputs":[],"name":"kill","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"mortal","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}],"devdoc":{"methods":{}},"evm":{"bytecode":{"linkReferences":{},"object":"608060405234801561001057600080fd5b5060f68061001f6000396000f3fe6080604052600436106042577c0100000000000000000000000000000000000000000000000000000000600035046341c0e1b581146047578063f1eae25c14605b575b600080fd5b348015605257600080fd5b506059606d565b005b348015606657600080fd5b50605960a9565b60005473ffffffffffffffffffffffffffffffffffffffff1633141560a75760005473ffffffffffffffffffffffffffffffffffffffff16ff5b565b6000805473ffffffffffffffffffffffffffffffffffffffff19163317905556fea165627a7a723058202fa44a046431e1ea51812cc2435e0901709b4920acdb8e369afed97820ea8bdb0029","opcodes":"PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0xF6 DUP1 PUSH2 0x1F PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH1 0x42 JUMPI PUSH29 0x100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 CALLDATALOAD DIV PUSH4 0x41C0E1B5 DUP2 EQ PUSH1 0x47 JUMPI DUP1 PUSH4 0xF1EAE25C EQ PUSH1 0x5B JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH1 0x52 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x59 PUSH1 0x6D JUMP JUMPDEST STOP JUMPDEST CALLVALUE DUP1 ISZERO PUSH1 0x66 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x59 PUSH1 0xA9 JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER EQ ISZERO PUSH1 0xA7 JUMPI PUSH1 0x0 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SELFDESTRUCT JUMPDEST JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF NOT AND CALLER OR SWAP1 SSTORE JUMP INVALID LOG1 PUSH6 0x627A7A723058 KECCAK256 0x2f LOG4 0x4a DIV PUSH5 0x31E1EA5181 0x2c 0xc2 NUMBER 0x5e MULMOD ADD PUSH17 0x9B4920ACDB8E369AFED97820EA8BDB0029 ","sourceMap":"25:375:1:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25:375:1;;;;;;;"},"gasEstimates":{"creation":{"codeDepositCost":"49200","executionCost":"99","totalCost":"49299"},"external":{"kill()":"30554","mortal()":"20369"}}},"userdoc":{"methods":{}}}}},"sources":{"greeter.sol":{"ast":{"absolutePath":"greeter.sol","exportedSymbols":{"Greeter":[25]},"id":26,"nodeType":"SourceUnit","nodes":[{"id":1,"literals":["solidity","^","0.5",".0"],"nodeType":"PragmaDirective","src":"0:23:0"},{"absolutePath":"mortal.sol","file":"./mortal.sol","id":2,"nodeType":"ImportDirective","scope":26,"sourceUnit":53,"src":"24:22:0","symbolAliases":[],"unitAlias":""},{"baseContracts":[{"arguments":null,"baseName":{"contractScope":null,"id":3,"name":"Mortal","nodeType":"UserDefinedTypeName","referencedDeclaration":52,"src":"68:6:0","typeDescriptions":{"typeIdentifier":"t_contract$_Mortal_$52","typeString":"contract Mortal"}},"id":4,"nodeType":"InheritanceSpecifier","src":"68:6:0"}],"contractDependencies":[52],"contractKind":"contract","documentation":null,"fullyImplemented":true,"id":25,"linearizedBaseContracts":[25,52],"name":"Greeter","nodeType":"ContractDefinition","nodes":[{"constant":false,"id":6,"name":"greeting","nodeType":"VariableDeclaration","scope":25,"src":"135:15:0","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_string_storage","typeString":"string"},"typeName":{"id":5,"name":"string","nodeType":"ElementaryTypeName","src":"135:6:0","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"value":null,"visibility":"internal"},{"body":{"id":15,"nodeType":"Block","src":"251:37:0","statements":[{"expression":{"argumentTypes":null,"id":13,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"id":11,"name":"greeting","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":6,"src":"261:8:0","typeDescriptions":{"typeIdentifier":"t_string_storage","typeString":"string storage ref"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"id":12,"name":"_greeting","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":8,"src":"272:9:0","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}},"src":"261:20:0","typeDescriptions":{"typeIdentifier":"t_string_storage","typeString":"string storage ref"}},"id":14,"nodeType":"ExpressionStatement","src":"261:20:0"}]},"documentation":null,"id":16,"implemented":true,"kind":"constructor","modifiers":[],"name":"","nodeType":"FunctionDefinition","parameters":{"id":9,"nodeType":"ParameterList","parameters":[{"constant":false,"id":8,"name":"_greeting","nodeType":"VariableDeclaration","scope":16,"src":"219:23:0","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":7,"name":"string","nodeType":"ElementaryTypeName","src":"219:6:0","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"value":null,"visibility":"internal"}],"src":"218:25:0"},"returnParameters":{"id":10,"nodeType":"ParameterList","parameters":[],"src":"251:0:0"},"scope":25,"src":"207:81:0","stateMutability":"nonpayable","superFunction":null,"visibility":"public"},{"body":{"id":23,"nodeType":"Block","src":"371:32:0","statements":[{"expression":{"argumentTypes":null,"id":21,"name":"greeting","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":6,"src":"388:8:0","typeDescriptions":{"typeIdentifier":"t_string_storage","typeString":"string storage ref"}},"functionReturnParameters":20,"id":22,"nodeType":"Return","src":"381:15:0"}]},"documentation":null,"id":24,"implemented":true,"kind":"function","modifiers":[],"name":"greet","nodeType":"FunctionDefinition","parameters":{"id":17,"nodeType":"ParameterList","parameters":[],"src":"332:2:0"},"returnParameters":{"id":20,"nodeType":"ParameterList","parameters":[{"constant":false,"id":19,"name":"","nodeType":"VariableDeclaration","scope":24,"src":"356:13:0","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":18,"name":"string","nodeType":"ElementaryTypeName","src":"356:6:0","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"value":null,"visibility":"internal"}],"src":"355:15:0"},"scope":25,"src":"318:85:0","stateMutability":"view","superFunction":null,"visibility":"public"}],"scope":26,"src":"48:357:0"}],"src":"0:406:0"},"id":0,"legacyAST":{"attributes":{"absolutePath":"greeter.sol","exportedSymbols":{"Greeter":[25]}},"children":[{"attributes":{"literals":["solidity","^","0.5",".0"]},"id":1,"name":"PragmaDirective","src":"0:23:0"},{"attributes":{"SourceUnit":53,"absolutePath":"mortal.sol","file":"./mortal.sol","scope":26,"symbolAliases":[null],"unitAlias":""},"id":2,"name":"ImportDirective","src":"24:22:0"},{"attributes":{"contractDependencies":[52],"contractKind":"contract","documentation":null,"fullyImplemented":true,"linearizedBaseContracts":[25,52],"name":"Greeter","scope":26},"children":[{"attributes":{"arguments":null},"children":[{"attributes":{"contractScope":null,"name":"Mortal","referencedDeclaration":52,"type":"contract Mortal"},"id":3,"name":"UserDefinedTypeName","src":"68:6:0"}],"id":4,"name":"InheritanceSpecifier","src":"68:6:0"},{"attributes":{"constant":false,"name":"greeting","scope":25,"stateVariable":true,"storageLocation":"default","type":"string","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string"},"id":5,"name":"ElementaryTypeName","src":"135:6:0"}],"id":6,"name":"VariableDeclaration","src":"135:15:0"},{"attributes":{"documentation":null,"implemented":true,"isConstructor":true,"kind":"constructor","modifiers":[null],"name":"","scope":25,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_greeting","scope":16,"stateVariable":false,"storageLocation":"memory","type":"string","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string"},"id":7,"name":"ElementaryTypeName","src":"219:6:0"}],"id":8,"name":"VariableDeclaration","src":"219:23:0"}],"id":9,"name":"ParameterList","src":"218:25:0"},{"attributes":{"parameters":[null]},"children":[],"id":10,"name":"ParameterList","src":"251:0:0"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"string storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":6,"type":"string storage ref","value":"greeting"},"id":11,"name":"Identifier","src":"261:8:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":8,"type":"string memory","value":"_greeting"},"id":12,"name":"Identifier","src":"272:9:0"}],"id":13,"name":"Assignment","src":"261:20:0"}],"id":14,"name":"ExpressionStatement","src":"261:20:0"}],"id":15,"name":"Block","src":"251:37:0"}],"id":16,"name":"FunctionDefinition","src":"207:81:0"},{"attributes":{"documentation":null,"implemented":true,"isConstructor":false,"kind":"function","modifiers":[null],"name":"greet","scope":25,"stateMutability":"view","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":17,"name":"ParameterList","src":"332:2:0"},{"children":[{"attributes":{"constant":false,"name":"","scope":24,"stateVariable":false,"storageLocation":"memory","type":"string","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string"},"id":18,"name":"ElementaryTypeName","src":"356:6:0"}],"id":19,"name":"VariableDeclaration","src":"356:13:0"}],"id":20,"name":"ParameterList","src":"355:15:0"},{"children":[{"attributes":{"functionReturnParameters":20},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":6,"type":"string storage ref","value":"greeting"},"id":21,"name":"Identifier","src":"388:8:0"}],"id":22,"name":"Return","src":"381:15:0"}],"id":23,"name":"Block","src":"371:32:0"}],"id":24,"name":"FunctionDefinition","src":"318:85:0"}],"id":25,"name":"ContractDefinition","src":"48:357:0"}],"id":26,"name":"SourceUnit","src":"0:406:0"}},"mortal.sol":{"ast":{"absolutePath":"mortal.sol","exportedSymbols":{"Mortal":[52]},"id":53,"nodeType":"SourceUnit","nodes":[{"id":27,"literals":["solidity","^","0.5",".0"],"nodeType":"PragmaDirective","src":"0:23:1"},{"baseContracts":[],"contractDependencies":[],"contractKind":"contract","documentation":null,"fullyImplemented":true,"id":52,"linearizedBaseContracts":[52],"name":"Mortal","nodeType":"ContractDefinition","nodes":[{"constant":false,"id":29,"name":"owner","nodeType":"VariableDeclaration","scope":52,"src":"99:21:1","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"},"typeName":{"id":28,"name":"address","nodeType":"ElementaryTypeName","src":"99:15:1","stateMutability":"payable","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},"value":null,"visibility":"internal"},{"body":{"id":37,"nodeType":"Block","src":"241:23:1","statements":[{"expression":{"argumentTypes":null,"id":35,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"id":32,"name":"owner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":29,"src":"243:5:1","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":33,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":67,"src":"251:3:1","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":34,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"sender","nodeType":"MemberAccess","referencedDeclaration":null,"src":"251:10:1","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},"src":"243:18:1","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},"id":36,"nodeType":"ExpressionStatement","src":"243:18:1"}]},"documentation":null,"id":38,"implemented":true,"kind":"function","modifiers":[],"name":"mortal","nodeType":"FunctionDefinition","parameters":{"id":30,"nodeType":"ParameterList","parameters":[],"src":"231:2:1"},"returnParameters":{"id":31,"nodeType":"ParameterList","parameters":[],"src":"241:0:1"},"scope":52,"src":"216:48:1","stateMutability":"nonpayable","superFunction":null,"visibility":"public"},{"body":{"id":50,"nodeType":"Block","src":"349:49:1","statements":[{"condition":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address_payable","typeString":"address payable"},"id":44,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":41,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":67,"src":"355:3:1","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":42,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"sender","nodeType":"MemberAccess","referencedDeclaration":null,"src":"355:10:1","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"argumentTypes":null,"id":43,"name":"owner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":29,"src":"369:5:1","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},"src":"355:19:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":null,"id":49,"nodeType":"IfStatement","src":"351:44:1","trueBody":{"expression":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":46,"name":"owner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":29,"src":"389:5:1","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address_payable","typeString":"address payable"}],"id":45,"name":"selfdestruct","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":75,"src":"376:12:1","typeDescriptions":{"typeIdentifier":"t_function_selfdestruct_nonpayable$_t_address_payable_$returns$__$","typeString":"function (address payable)"}},"id":47,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"376:19:1","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":48,"nodeType":"ExpressionStatement","src":"376:19:1"}}]},"documentation":null,"id":51,"implemented":true,"kind":"function","modifiers":[],"name":"kill","nodeType":"FunctionDefinition","parameters":{"id":39,"nodeType":"ParameterList","parameters":[],"src":"339:2:1"},"returnParameters":{"id":40,"nodeType":"ParameterList","parameters":[],"src":"349:0:1"},"scope":52,"src":"326:72:1","stateMutability":"nonpayable","superFunction":null,"visibility":"public"}],"scope":53,"src":"25:375:1"}],"src":"0:401:1"},"id":1,"legacyAST":{"attributes":{"absolutePath":"mortal.sol","exportedSymbols":{"Mortal":[52]}},"children":[{"attributes":{"literals":["solidity","^","0.5",".0"]},"id":27,"name":"PragmaDirective","src":"0:23:1"},{"attributes":{"baseContracts":[null],"contractDependencies":[null],"contractKind":"contract","documentation":null,"fullyImplemented":true,"linearizedBaseContracts":[52],"name":"Mortal","scope":53},"children":[{"attributes":{"constant":false,"name":"owner","scope":52,"stateVariable":true,"storageLocation":"default","type":"address payable","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","stateMutability":"payable","type":"address payable"},"id":28,"name":"ElementaryTypeName","src":"99:15:1"}],"id":29,"name":"VariableDeclaration","src":"99:21:1"},{"attributes":{"documentation":null,"implemented":true,"isConstructor":false,"kind":"function","modifiers":[null],"name":"mortal","scope":52,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":30,"name":"ParameterList","src":"231:2:1"},{"attributes":{"parameters":[null]},"children":[],"id":31,"name":"ParameterList","src":"241:0:1"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"address payable"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":29,"type":"address payable","value":"owner"},"id":32,"name":"Identifier","src":"243:5:1"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address payable"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":67,"type":"msg","value":"msg"},"id":33,"name":"Identifier","src":"251:3:1"}],"id":34,"name":"MemberAccess","src":"251:10:1"}],"id":35,"name":"Assignment","src":"243:18:1"}],"id":36,"name":"ExpressionStatement","src":"243:18:1"}],"id":37,"name":"Block","src":"241:23:1"}],"id":38,"name":"FunctionDefinition","src":"216:48:1"},{"attributes":{"documentation":null,"implemented":true,"isConstructor":false,"kind":"function","modifiers":[null],"name":"kill","scope":52,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":39,"name":"ParameterList","src":"339:2:1"},{"attributes":{"parameters":[null]},"children":[],"id":40,"name":"ParameterList","src":"349:0:1"},{"children":[{"attributes":{"falseBody":null},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address_payable","typeString":"address payable"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"==","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address payable"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":67,"type":"msg","value":"msg"},"id":41,"name":"Identifier","src":"355:3:1"}],"id":42,"name":"MemberAccess","src":"355:10:1"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":29,"type":"address payable","value":"owner"},"id":43,"name":"Identifier","src":"369:5:1"}],"id":44,"name":"BinaryOperation","src":"355:19:1"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address_payable","typeString":"address payable"}],"overloadedDeclarations":[null],"referencedDeclaration":75,"type":"function (address payable)","value":"selfdestruct"},"id":45,"name":"Identifier","src":"376:12:1"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":29,"type":"address payable","value":"owner"},"id":46,"name":"Identifier","src":"389:5:1"}],"id":47,"name":"FunctionCall","src":"376:19:1"}],"id":48,"name":"ExpressionStatement","src":"376:19:1"}],"id":49,"name":"IfStatement","src":"351:44:1"}],"id":50,"name":"Block","src":"349:49:1"}],"id":51,"name":"FunctionDefinition","src":"326:72:1"}],"id":52,"name":"ContractDefinition","src":"25:375:1"}],"id":53,"name":"SourceUnit","src":"0:401:1"}}}}` assert.deepEqual(results, msg) }) })