Skip to content

Instantly share code, notes, and snippets.

@willitscale
Last active October 26, 2017 18:54
Show Gist options
  • Save willitscale/b593171137d7264956b60f3b1d61afa9 to your computer and use it in GitHub Desktop.
Save willitscale/b593171137d7264956b60f3b1d61afa9 to your computer and use it in GitHub Desktop.
pragma solidity ^0.4.0;
contract Contract1 {
function call1() public pure returns(bool) {
return true;
}
}
contract Contract2 {
function call2() public pure returns(string) {
return "test";
}
}
contract Error {
Contract1 private _contract1;
Contract2 private _contract2;
function Error() public {
_contract1 = new Contract1();
_contract2 = new Contract2();
}
function trigger1() public view {
Contract1(_contract2).call1();
}
function trigger2() public view {
Contract2(_contract1).call2();
}
}
creation of browser/error.sol:Error pending...
[vm] from:0xca3...a733c, to:browser/error.sol:Error.(constructor), value:0 wei, data:0x606...d0029, 0 logs, hash:0x64c...56af8
Details
Debug
status 0x1 Transaction mined and execution succeed
contractAddress 0x5e72914535f202659083db3a02c984188fa26e9f
from 0xca35b7d915458ef540ade6068dfe2f44e8fa733c
to browser/error.sol:Error.(constructor)
gas 3000000 gas
transaction cost 435364 gas
execution cost 308320 gas
hash 0x64cecb4012458184fdc41e22e5dc3dee76231a7162bffd1a0acdb41b23956af8
input 0x6060604052341561000f57600080fd5b6100176100cf565b604051809103906000f080151561002d57600080fd5b6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506100746100de565b604051809103906000f080151561008a57600080fd5b600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506100ee565b60405160bf806102fb83390190565b604051610175806103ba83390190565b6101fe806100fd6000396000f30060606040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630a2c25fc1461005157806364248e8914610066575b600080fd5b341561005c57600080fd5b61006461007b565b005b341561007157600080fd5b610079610126565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663159988746000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561010857600080fd5b6102c65a03f1151561011957600080fd5b5050506040518051905050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e236188c6000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156101b457600080fd5b6102c65a03f115156101c557600080fd5b50505060405180519050505600a165627a7a7230582061da0ede4b90bb136e4ce5da595b03c9c7a1d5b6a2e5d15ecbbd86ba9b39308e002960606040523415600e57600080fd5b60a38061001c6000396000f300606060405260043610603f576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063e236188c146044575b600080fd5b3415604e57600080fd5b6054606e565b604051808215151515815260200191505060405180910390f35b600060019050905600a165627a7a72305820ad2a185c23275421bb2b8cc11b4b6900337b2746b3693a5a12870996f82db00000296060604052341561000f57600080fd5b6101578061001e6000396000f300606060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631599887414610046575b600080fd5b341561005157600080fd5b6100596100d4565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561009957808201518184015260208101905061007e565b50505050905090810190601f1680156100c65780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6100dc610117565b6040805190810160405280600481526020017f7465737400000000000000000000000000000000000000000000000000000000815250905090565b6020604051908101604052806000815250905600a165627a7a72305820b5c82ee36875d63fd9cdded4cf82d3b10c886ba35227de6ac4d4c92c4195adad0029
decoded input {}
decoded output -
logs []
value 0 wei
[call] from: - , to:browser/error.sol:Error.trigger2(), data:0a2c2...c25fc, return:
Details
Debug
{}
from -
to browser/error.sol:Error.trigger2() 0x5e72914535f202659083db3a02c984188fa26e9f
transaction cost 23272 gas (Cost only applies when called by a contract)
execution cost 2000 gas (Cost only applies when called by a contract)
input 0a2c25fc
decoded input {}
decoded output {}
logs []
undefined errored: VM error: revert.
revert The transaction has been reverted to the initial state.
Debug the transaction to get more information.
[call] from: - , to:browser/error.sol:Error.trigger1(), data:64248...48e89, return:
Details
Debug
{}
from -
to browser/error.sol:Error.trigger1() 0x5e72914535f202659083db3a02c984188fa26e9f
transaction cost 23294 gas (Cost only applies when called by a contract)
execution cost 2022 gas (Cost only applies when called by a contract)
input 64248e89
decoded input {}
decoded output {}
logs []
undefined errored: VM error: revert.
revert The transaction has been reverted to the initial state.
Debug the transaction to get more information.
call to browser/error.sol:Error.trigger1
[call] from: - , to:browser/error.sol:Error.trigger1(), data:64248...48e89, return:
Details
Debug
{}
from -
to browser/error.sol:Error.trigger1() 0x5e72914535f202659083db3a02c984188fa26e9f
transaction cost 23294 gas (Cost only applies when called by a contract)
execution cost 2022 gas (Cost only applies when called by a contract)
input 64248e89
decoded input {}
decoded output {}
logs []
call to browser/error.sol:Error.trigger1 errored: VM error: revert.
revert The transaction has been reverted to the initial state.
Debug the transaction to get more information.
call to browser/error.sol:Error.trigger2
[call] from: - , to:browser/error.sol:Error.trigger2(), data:0a2c2...c25fc, return:
Details
Debug
{}
from -
to browser/error.sol:Error.trigger2() 0x5e72914535f202659083db3a02c984188fa26e9f
transaction cost 23272 gas (Cost only applies when called by a contract)
execution cost 2000 gas (Cost only applies when called by a contract)
input 0a2c25fc
decoded input {}
decoded output {}
logs []
call to browser/error.sol:Error.trigger2 errored: VM error: revert.
revert The transaction has been reverted to the initial state.
Debug the transaction to get more information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment