Skip to content

Instantly share code, notes, and snippets.

@fvictorio
Last active August 27, 2021 16:44
Show Gist options
  • Save fvictorio/9e85167f10f24bdf262532997b4d296e to your computer and use it in GitHub Desktop.
Save fvictorio/9e85167f10f24bdf262532997b4d296e to your computer and use it in GitHub Desktop.
geth evm bug
{
"gas": 66333,
"failed": false,
"returnValue": "00000000000000000000000000000000000000775c9b2954b075692132e652e2d2f143e850f67d00000000000000000000000000000000000000000000000000",
"structLogs": [
{
"pc": 0,
"op": "ADDRESS",
"gas": 96632,
"gasCost": 2,
"depth": 1,
"stack": [],
"memory": [],
"storage": {}
},
{
"pc": 1,
"op": "CALLVALUE",
"gas": 96630,
"gasCost": 2,
"depth": 1,
"stack": [
"000000000000000000000000775c9b2954b075692132e652e2d2f143e850f67d"
],
"memory": [],
"storage": {}
},
{
"pc": 2,
"op": "MSTORE",
"gas": 96628,
"gasCost": 6,
"depth": 1,
"stack": [
"000000000000000000000000775c9b2954b075692132e652e2d2f143e850f67d",
"0000000000000000000000000000000000000000000000000000000000000000"
],
"memory": [
"0000000000000000000000000000000000000000000000000000000000000000"
],
"storage": {}
},
{
"pc": 3,
"op": "PUSH1",
"gas": 96622,
"gasCost": 3,
"depth": 1,
"stack": [],
"memory": [
"000000000000000000000000775c9b2954b075692132e652e2d2f143e850f67d"
],
"storage": {}
},
{
"pc": 5,
"op": "PUSH1",
"gas": 96619,
"gasCost": 3,
"depth": 1,
"stack": [
"0000000000000000000000000000000000000000000000000000000000000020"
],
"memory": [
"000000000000000000000000775c9b2954b075692132e652e2d2f143e850f67d"
],
"storage": {}
},
{
"pc": 7,
"op": "PUSH1",
"gas": 96616,
"gasCost": 3,
"depth": 1,
"stack": [
"0000000000000000000000000000000000000000000000000000000000000020",
"0000000000000000000000000000000000000000000000000000000000000007"
],
"memory": [
"000000000000000000000000775c9b2954b075692132e652e2d2f143e850f67d"
],
"storage": {}
},
{
"pc": 9,
"op": "CALLVALUE",
"gas": 96613,
"gasCost": 2,
"depth": 1,
"stack": [
"0000000000000000000000000000000000000000000000000000000000000020",
"0000000000000000000000000000000000000000000000000000000000000007",
"0000000000000000000000000000000000000000000000000000000000000020"
],
"memory": [
"000000000000000000000000775c9b2954b075692132e652e2d2f143e850f67d"
],
"storage": {}
},
{
"pc": 10,
"op": "PUSH1",
"gas": 96611,
"gasCost": 3,
"depth": 1,
"stack": [
"0000000000000000000000000000000000000000000000000000000000000020",
"0000000000000000000000000000000000000000000000000000000000000007",
"0000000000000000000000000000000000000000000000000000000000000020",
"0000000000000000000000000000000000000000000000000000000000000000"
],
"memory": [
"000000000000000000000000775c9b2954b075692132e652e2d2f143e850f67d"
],
"storage": {}
},
{
"pc": 12,
"op": "GAS",
"gas": 96608,
"gasCost": 2,
"depth": 1,
"stack": [
"0000000000000000000000000000000000000000000000000000000000000020",
"0000000000000000000000000000000000000000000000000000000000000007",
"0000000000000000000000000000000000000000000000000000000000000020",
"0000000000000000000000000000000000000000000000000000000000000000",
"0000000000000000000000000000000000000000000000000000000000000004"
],
"memory": [
"000000000000000000000000775c9b2954b075692132e652e2d2f143e850f67d"
],
"storage": {}
},
{
"pc": 13,
"op": "STATICCALL",
"gas": 96606,
"gasCost": 95099,
"depth": 1,
"stack": [
"0000000000000000000000000000000000000000000000000000000000000020",
"0000000000000000000000000000000000000000000000000000000000000007",
"0000000000000000000000000000000000000000000000000000000000000020",
"0000000000000000000000000000000000000000000000000000000000000000",
"0000000000000000000000000000000000000000000000000000000000000004",
"000000000000000000000000000000000000000000000000000000000001795e"
],
"memory": [
"000000000000000000000000775c9b2954b075692132e652e2d2f143e850f67d",
"0000000000000000000000000000000000000000000000000000000000000000"
],
"storage": {}
},
{
"pc": 14,
"op": "PUSH1",
"gas": 96485,
"gasCost": 3,
"depth": 1,
"stack": [
"0000000000000000000000000000000000000000000000000000000000000001"
],
"memory": [
"00000000000000000000000000000000000000775c9b2954b075692132e652e2",
"d2f143e850f67d00000000000000000000000000000000000000000000000000"
],
"storage": {}
},
{
"pc": 16,
"op": "CALLVALUE",
"gas": 96482,
"gasCost": 2,
"depth": 1,
"stack": [
"0000000000000000000000000000000000000000000000000000000000000001",
"0000000000000000000000000000000000000000000000000000000000000020"
],
"memory": [
"00000000000000000000000000000000000000775c9b2954b075692132e652e2",
"d2f143e850f67d00000000000000000000000000000000000000000000000000"
],
"storage": {}
},
{
"pc": 17,
"op": "CALLVALUE",
"gas": 96480,
"gasCost": 2,
"depth": 1,
"stack": [
"0000000000000000000000000000000000000000000000000000000000000001",
"0000000000000000000000000000000000000000000000000000000000000020",
"0000000000000000000000000000000000000000000000000000000000000000"
],
"memory": [
"00000000000000000000000000000000000000775c9b2954b075692132e652e2",
"d2f143e850f67d00000000000000000000000000000000000000000000000000"
],
"storage": {}
},
{
"pc": 18,
"op": "RETURNDATACOPY",
"gas": 96478,
"gasCost": 6,
"depth": 1,
"stack": [
"0000000000000000000000000000000000000000000000000000000000000001",
"0000000000000000000000000000000000000000000000000000000000000020",
"0000000000000000000000000000000000000000000000000000000000000000",
"0000000000000000000000000000000000000000000000000000000000000000"
],
"memory": [
"00000000000000000000000000000000000000775c9b2954b075692132e652e2",
"d2f143e850f67d00000000000000000000000000000000000000000000000000"
],
"storage": {}
},
{
"pc": 19,
"op": "PUSH1",
"gas": 96472,
"gasCost": 3,
"depth": 1,
"stack": [
"0000000000000000000000000000000000000000000000000000000000000001"
],
"memory": [
"00000000000000000000000000000000000000775c9b2954b075692132e652e2",
"d2f143e850f67d00000000000000000000000000000000000000000000000000"
],
"storage": {}
},
{
"pc": 21,
"op": "CALLVALUE",
"gas": 96469,
"gasCost": 2,
"depth": 1,
"stack": [
"0000000000000000000000000000000000000000000000000000000000000001",
"0000000000000000000000000000000000000000000000000000000000000040"
],
"memory": [
"00000000000000000000000000000000000000775c9b2954b075692132e652e2",
"d2f143e850f67d00000000000000000000000000000000000000000000000000"
],
"storage": {}
},
{
"pc": 22,
"op": "RETURN",
"gas": 96467,
"gasCost": 0,
"depth": 1,
"stack": [
"0000000000000000000000000000000000000000000000000000000000000001",
"0000000000000000000000000000000000000000000000000000000000000040",
"0000000000000000000000000000000000000000000000000000000000000000"
],
"memory": [
"00000000000000000000000000000000000000775c9b2954b075692132e652e2",
"d2f143e850f67d00000000000000000000000000000000000000000000000000"
],
"storage": {}
}
]
}
{
"gas": 66333,
"failed": false,
"returnValue": "000000000000000000000000775c9b2954b075692132e652e2d2f143e850f67dd2f143e850f67d00000000000000000000000000000000000000000000000000",
"structLogs": [
{
"pc": 0,
"op": "ADDRESS",
"gas": 96632,
"gasCost": 2,
"depth": 1,
"stack": [],
"memory": [],
"storage": {}
},
{
"pc": 1,
"op": "CALLVALUE",
"gas": 96630,
"gasCost": 2,
"depth": 1,
"stack": [
"000000000000000000000000775c9b2954b075692132e652e2d2f143e850f67d"
],
"memory": [],
"storage": {}
},
{
"pc": 2,
"op": "MSTORE",
"gas": 96628,
"gasCost": 6,
"depth": 1,
"stack": [
"000000000000000000000000775c9b2954b075692132e652e2d2f143e850f67d",
"0000000000000000000000000000000000000000000000000000000000000000"
],
"memory": [
"0000000000000000000000000000000000000000000000000000000000000000"
],
"storage": {}
},
{
"pc": 3,
"op": "PUSH1",
"gas": 96622,
"gasCost": 3,
"depth": 1,
"stack": [],
"memory": [
"000000000000000000000000775c9b2954b075692132e652e2d2f143e850f67d"
],
"storage": {}
},
{
"pc": 5,
"op": "PUSH1",
"gas": 96619,
"gasCost": 3,
"depth": 1,
"stack": [
"0000000000000000000000000000000000000000000000000000000000000020"
],
"memory": [
"000000000000000000000000775c9b2954b075692132e652e2d2f143e850f67d"
],
"storage": {}
},
{
"pc": 7,
"op": "PUSH1",
"gas": 96616,
"gasCost": 3,
"depth": 1,
"stack": [
"0000000000000000000000000000000000000000000000000000000000000020",
"0000000000000000000000000000000000000000000000000000000000000007"
],
"memory": [
"000000000000000000000000775c9b2954b075692132e652e2d2f143e850f67d"
],
"storage": {}
},
{
"pc": 9,
"op": "CALLVALUE",
"gas": 96613,
"gasCost": 2,
"depth": 1,
"stack": [
"0000000000000000000000000000000000000000000000000000000000000020",
"0000000000000000000000000000000000000000000000000000000000000007",
"0000000000000000000000000000000000000000000000000000000000000020"
],
"memory": [
"000000000000000000000000775c9b2954b075692132e652e2d2f143e850f67d"
],
"storage": {}
},
{
"pc": 10,
"op": "PUSH1",
"gas": 96611,
"gasCost": 3,
"depth": 1,
"stack": [
"0000000000000000000000000000000000000000000000000000000000000020",
"0000000000000000000000000000000000000000000000000000000000000007",
"0000000000000000000000000000000000000000000000000000000000000020",
"0000000000000000000000000000000000000000000000000000000000000000"
],
"memory": [
"000000000000000000000000775c9b2954b075692132e652e2d2f143e850f67d"
],
"storage": {}
},
{
"pc": 12,
"op": "GAS",
"gas": 96608,
"gasCost": 2,
"depth": 1,
"stack": [
"0000000000000000000000000000000000000000000000000000000000000020",
"0000000000000000000000000000000000000000000000000000000000000007",
"0000000000000000000000000000000000000000000000000000000000000020",
"0000000000000000000000000000000000000000000000000000000000000000",
"0000000000000000000000000000000000000000000000000000000000000004"
],
"memory": [
"000000000000000000000000775c9b2954b075692132e652e2d2f143e850f67d"
],
"storage": {}
},
{
"pc": 13,
"op": "STATICCALL",
"gas": 96606,
"gasCost": 95099,
"depth": 1,
"stack": [
"0000000000000000000000000000000000000000000000000000000000000020",
"0000000000000000000000000000000000000000000000000000000000000007",
"0000000000000000000000000000000000000000000000000000000000000020",
"0000000000000000000000000000000000000000000000000000000000000000",
"0000000000000000000000000000000000000000000000000000000000000004",
"000000000000000000000000000000000000000000000000000000000001795e"
],
"memory": [
"000000000000000000000000775c9b2954b075692132e652e2d2f143e850f67d",
"0000000000000000000000000000000000000000000000000000000000000000"
],
"storage": {}
},
{
"pc": 14,
"op": "PUSH1",
"gas": 96485,
"gasCost": 3,
"depth": 1,
"stack": [
"0000000000000000000000000000000000000000000000000000000000000001"
],
"memory": [
"00000000000000000000000000000000000000775c9b2954b075692132e652e2",
"d2f143e850f67d00000000000000000000000000000000000000000000000000"
],
"storage": {}
},
{
"pc": 16,
"op": "CALLVALUE",
"gas": 96482,
"gasCost": 2,
"depth": 1,
"stack": [
"0000000000000000000000000000000000000000000000000000000000000001",
"0000000000000000000000000000000000000000000000000000000000000020"
],
"memory": [
"00000000000000000000000000000000000000775c9b2954b075692132e652e2",
"d2f143e850f67d00000000000000000000000000000000000000000000000000"
],
"storage": {}
},
{
"pc": 17,
"op": "CALLVALUE",
"gas": 96480,
"gasCost": 2,
"depth": 1,
"stack": [
"0000000000000000000000000000000000000000000000000000000000000001",
"0000000000000000000000000000000000000000000000000000000000000020",
"0000000000000000000000000000000000000000000000000000000000000000"
],
"memory": [
"00000000000000000000000000000000000000775c9b2954b075692132e652e2",
"d2f143e850f67d00000000000000000000000000000000000000000000000000"
],
"storage": {}
},
{
"pc": 18,
"op": "RETURNDATACOPY",
"gas": 96478,
"gasCost": 6,
"depth": 1,
"stack": [
"0000000000000000000000000000000000000000000000000000000000000001",
"0000000000000000000000000000000000000000000000000000000000000020",
"0000000000000000000000000000000000000000000000000000000000000000",
"0000000000000000000000000000000000000000000000000000000000000000"
],
"memory": [
"00000000000000000000000000000000000000775c9b2954b075692132e652e2",
"d2f143e850f67d00000000000000000000000000000000000000000000000000"
],
"storage": {}
},
{
"pc": 19,
"op": "PUSH1",
"gas": 96472,
"gasCost": 3,
"depth": 1,
"stack": [
"0000000000000000000000000000000000000000000000000000000000000001"
],
"memory": [
"000000000000000000000000775c9b2954b075692132e652e2d2f143e850f67d",
"d2f143e850f67d00000000000000000000000000000000000000000000000000"
],
"storage": {}
},
{
"pc": 21,
"op": "CALLVALUE",
"gas": 96469,
"gasCost": 2,
"depth": 1,
"stack": [
"0000000000000000000000000000000000000000000000000000000000000001",
"0000000000000000000000000000000000000000000000000000000000000040"
],
"memory": [
"000000000000000000000000775c9b2954b075692132e652e2d2f143e850f67d",
"d2f143e850f67d00000000000000000000000000000000000000000000000000"
],
"storage": {}
},
{
"pc": 22,
"op": "RETURN",
"gas": 96467,
"gasCost": 0,
"depth": 1,
"stack": [
"0000000000000000000000000000000000000000000000000000000000000001",
"0000000000000000000000000000000000000000000000000000000000000040",
"0000000000000000000000000000000000000000000000000000000000000000"
],
"memory": [
"000000000000000000000000775c9b2954b075692132e652e2d2f143e850f67d",
"d2f143e850f67d00000000000000000000000000000000000000000000000000"
],
"storage": {}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment