Skip to content

Commit

Permalink
EOF: Forbid DELEGATECALL EOF → legacy
Browse files Browse the repository at this point in the history
According to EIP-3540 updated by
ethereum/EIPs#6359
a DELEGATECALL from EOF to legacy code is disallowed.

This updates expectations in the single test case of DELEGATECALL
EOF → legacy.
  • Loading branch information
chfast committed May 17, 2023
1 parent b25623d commit 53907c4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions EIPTests/StateTests/stEOF/stEIP3540/EOF1_Calls.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"EOF1_Calls" : {
"_info" : {
"comment" : "",
"filling-rpc-server" : "evmone-t8n 0.10.0-dev+commit.42119423",
"filling-tool-version" : "retesteth-0.3.1-shanghai+commit.899b8f06.Darwin.appleclang",
"generatedTestHash" : "5a2b6aa6acb70636f6875bad469b27cb92b7c5a114fed513cb4f58d2d8c504a6",
"filling-rpc-server" : "evmone-t8n 0.11.0-dev+commit.7f9949f9",
"filling-tool-version" : "retesteth-0.3.1-shanghai+commit.e5e3eb4e.Linux.g++",
"generatedTestHash" : "2b829276fefc29ca69aa98da8964ca32e83475ed7622f42ed88d56975bc0586c",
"labels" : {
"0" : "legacy_call_eof",
"1" : "legacy_delegatecall_eof",
Expand All @@ -19,10 +19,10 @@
"8" : "eof_call_eof",
"9" : "eof_delegatecall_eof"
},
"lllcversion" : "Error getting LLLC Version",
"solidity" : "Version: 0.8.18-develop.2023.3.31+commit.469d6d4d.mod.Darwin.appleclang",
"lllcversion" : "Version: 0.5.14-develop.2022.6.30+commit.401d5358.mod.Linux.g++",
"solidity" : "Version: 0.8.18-develop.2022.12.14+commit.a9fe05e8.Linux.g++",
"source" : "src/EIPTestsFiller/StateTests/stEOF/stEIP3540/EOF1_CallsFiller.yml",
"sourceHash" : "d5b369f884874ab4880de23816090eb731261c7f56d1077fab1bc96b3006886e"
"sourceHash" : "ba0436bc36c757e06331e6a7b969fe48318a3930a50c23bd9dc25dfe555243fb"
},
"env" : {
"currentBaseFee" : "0x0a",
Expand Down Expand Up @@ -87,7 +87,7 @@
"txbytes" : "0xf874800a830aae6094b94f5374fce5edbc8e2a8697c15331677e6ebf0b8094204f5374fce5edbc8e2a8697c15331677e6ebf0b1ba08b276a9512cf27bc7cc28964eb56e398043d06deaeb254a6435c3ca179a2154ca0371b2fa94e6eafc800595f77a4824bc23df83fbfbd2402efb0095959dd669860"
},
{
"hash" : "0x0cfde7d2cafa851111ac4a612823bf0b0faa103d93c7d048f12e9b14d9f500a9",
"hash" : "0x64957845d48dd0aebb33385baae84ded00f67477d5575aca73448ca0bf1f7fc5",
"indexes" : {
"data" : 5,
"gas" : 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@ EOF1_Calls:
'1': '1'
224f5374fce5edbc8e2a8697c15331677e6ebf0b:
storage:
'0': '1'
'0': '0' # DELEGATECALL fails because disallowed.
'1': '1'
'10': 'b94f5374fce5edbc8e2a8697c15331677e6ebf0b'
'10': '0'

- indexes:
data: ':label eof_staticcall_legacy_failure'
Expand Down

0 comments on commit 53907c4

Please sign in to comment.