Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions TransactionTests/ttEIP3860/DataTestEnoughGasInitCode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"DataTestEnoughGasInitCode" : {
"_info" : {
"comment" : "",
"filling-rpc-server" : "evm version 1.11.0-unstable-1d6e96f2-20221124",
"filling-tool-version" : "retesteth-0.2.3-postmerge+commit.17808a69.Linux.g++",
"generatedTestHash" : "00d67f9931fb1afb31b5b88baa72420372f81d724fc7dbae58343a98ea4d9a8e",
"lllcversion" : "Error getting LLLC Version",
"solidity" : "Version: 0.8.17-develop.2022.9.30+commit.8df45f5f.Linux.clang",
"source" : "src/TransactionTestsFiller/ttEIP3860/DataTestEnoughGasInitCodeFiller.yml",
"sourceHash" : "a2bd523973ea07d336e6d26532fefa745896e2b3812a89788024d346677db374"
},
"result" : {
"Berlin" : {
"hash" : "0x8968e3a4186bf5edf31a2506b42d0ae47478fe5f44fb591b121ac08ec173f816",
"intrinsicGas" : "0xd008",
"sender" : "0xce520dd42b637d431c53409a24801eb14ae8e423"
},
"Byzantium" : {
"hash" : "0x8968e3a4186bf5edf31a2506b42d0ae47478fe5f44fb591b121ac08ec173f816",
"intrinsicGas" : "0xd008",
"sender" : "0xce520dd42b637d431c53409a24801eb14ae8e423"
},
"Constantinople" : {
"hash" : "0x8968e3a4186bf5edf31a2506b42d0ae47478fe5f44fb591b121ac08ec173f816",
"intrinsicGas" : "0xd008",
"sender" : "0xce520dd42b637d431c53409a24801eb14ae8e423"
},
"ConstantinopleFix" : {
"hash" : "0x8968e3a4186bf5edf31a2506b42d0ae47478fe5f44fb591b121ac08ec173f816",
"intrinsicGas" : "0xd008",
"sender" : "0xce520dd42b637d431c53409a24801eb14ae8e423"
},
"EIP150" : {
"hash" : "0x8968e3a4186bf5edf31a2506b42d0ae47478fe5f44fb591b121ac08ec173f816",
"intrinsicGas" : "0xd008",
"sender" : "0xce520dd42b637d431c53409a24801eb14ae8e423"
},
"EIP158" : {
"hash" : "0x8968e3a4186bf5edf31a2506b42d0ae47478fe5f44fb591b121ac08ec173f816",
"intrinsicGas" : "0xd008",
"sender" : "0xce520dd42b637d431c53409a24801eb14ae8e423"
},
"Frontier" : {
"hash" : "0x8968e3a4186bf5edf31a2506b42d0ae47478fe5f44fb591b121ac08ec173f816",
"intrinsicGas" : "0x5308",
"sender" : "0xce520dd42b637d431c53409a24801eb14ae8e423"
},
"Homestead" : {
"hash" : "0x8968e3a4186bf5edf31a2506b42d0ae47478fe5f44fb591b121ac08ec173f816",
"intrinsicGas" : "0xd008",
"sender" : "0xce520dd42b637d431c53409a24801eb14ae8e423"
},
"Istanbul" : {
"hash" : "0x8968e3a4186bf5edf31a2506b42d0ae47478fe5f44fb591b121ac08ec173f816",
"intrinsicGas" : "0xd008",
"sender" : "0xce520dd42b637d431c53409a24801eb14ae8e423"
},
"London" : {
"hash" : "0x8968e3a4186bf5edf31a2506b42d0ae47478fe5f44fb591b121ac08ec173f816",
"intrinsicGas" : "0xd008",
"sender" : "0xce520dd42b637d431c53409a24801eb14ae8e423"
},
"Merge" : {
"hash" : "0x8968e3a4186bf5edf31a2506b42d0ae47478fe5f44fb591b121ac08ec173f816",
"intrinsicGas" : "0xd008",
"sender" : "0xce520dd42b637d431c53409a24801eb14ae8e423"
},
"Merge+3860" : {
"hash" : "0x8968e3a4186bf5edf31a2506b42d0ae47478fe5f44fb591b121ac08ec173f816",
"intrinsicGas" : "0xd00c",
"sender" : "0xce520dd42b637d431c53409a24801eb14ae8e423"
}
},
"txbytes" : "0xf88c800a82d00c8080b840000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001ba048b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353a01fffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804"
}
}
77 changes: 77 additions & 0 deletions TransactionTests/ttEIP3860/DataTestInitCodeLimit.json

Large diffs are not rendered by default.

76 changes: 76 additions & 0 deletions TransactionTests/ttEIP3860/DataTestInitCodeTooBig.json

Large diffs are not rendered by default.

76 changes: 76 additions & 0 deletions TransactionTests/ttEIP3860/DataTestNotEnoughGasInitCode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"DataTestNotEnoughGasInitCode" : {
"_info" : {
"comment" : "",
"filling-rpc-server" : "evm version 1.11.0-unstable-1d6e96f2-20221124",
"filling-tool-version" : "retesteth-0.2.3-postmerge+commit.17808a69.Linux.g++",
"generatedTestHash" : "dd71624b23b1287dde6aa0d2f5183c53f2e2d41322c23030329b5391e11b16b1",
"lllcversion" : "Error getting LLLC Version",
"solidity" : "Version: 0.8.17-develop.2022.9.30+commit.8df45f5f.Linux.clang",
"source" : "src/TransactionTestsFiller/ttEIP3860/DataTestNotEnoughGasInitCodeFiller.yml",
"sourceHash" : "2aea0d525c3937cdb0702e9f2f1b72b73a5408692381af1a529afede7e38c53c"
},
"result" : {
"Berlin" : {
"hash" : "0x077408c53402b787d979234f073a6feacc3ea56bba9aacb3396cb7ea6198fd21",
"intrinsicGas" : "0xd008",
"sender" : "0xa53c8af190444b7fda8d9a7ac41c07f758a6d711"
},
"Byzantium" : {
"hash" : "0x077408c53402b787d979234f073a6feacc3ea56bba9aacb3396cb7ea6198fd21",
"intrinsicGas" : "0xd008",
"sender" : "0xa53c8af190444b7fda8d9a7ac41c07f758a6d711"
},
"Constantinople" : {
"hash" : "0x077408c53402b787d979234f073a6feacc3ea56bba9aacb3396cb7ea6198fd21",
"intrinsicGas" : "0xd008",
"sender" : "0xa53c8af190444b7fda8d9a7ac41c07f758a6d711"
},
"ConstantinopleFix" : {
"hash" : "0x077408c53402b787d979234f073a6feacc3ea56bba9aacb3396cb7ea6198fd21",
"intrinsicGas" : "0xd008",
"sender" : "0xa53c8af190444b7fda8d9a7ac41c07f758a6d711"
},
"EIP150" : {
"hash" : "0x077408c53402b787d979234f073a6feacc3ea56bba9aacb3396cb7ea6198fd21",
"intrinsicGas" : "0xd008",
"sender" : "0xa53c8af190444b7fda8d9a7ac41c07f758a6d711"
},
"EIP158" : {
"hash" : "0x077408c53402b787d979234f073a6feacc3ea56bba9aacb3396cb7ea6198fd21",
"intrinsicGas" : "0xd008",
"sender" : "0xa53c8af190444b7fda8d9a7ac41c07f758a6d711"
},
"Frontier" : {
"hash" : "0x077408c53402b787d979234f073a6feacc3ea56bba9aacb3396cb7ea6198fd21",
"intrinsicGas" : "0x5308",
"sender" : "0xa53c8af190444b7fda8d9a7ac41c07f758a6d711"
},
"Homestead" : {
"hash" : "0x077408c53402b787d979234f073a6feacc3ea56bba9aacb3396cb7ea6198fd21",
"intrinsicGas" : "0xd008",
"sender" : "0xa53c8af190444b7fda8d9a7ac41c07f758a6d711"
},
"Istanbul" : {
"hash" : "0x077408c53402b787d979234f073a6feacc3ea56bba9aacb3396cb7ea6198fd21",
"intrinsicGas" : "0xd008",
"sender" : "0xa53c8af190444b7fda8d9a7ac41c07f758a6d711"
},
"London" : {
"hash" : "0x077408c53402b787d979234f073a6feacc3ea56bba9aacb3396cb7ea6198fd21",
"intrinsicGas" : "0xd008",
"sender" : "0xa53c8af190444b7fda8d9a7ac41c07f758a6d711"
},
"Merge" : {
"hash" : "0x077408c53402b787d979234f073a6feacc3ea56bba9aacb3396cb7ea6198fd21",
"intrinsicGas" : "0xd008",
"sender" : "0xa53c8af190444b7fda8d9a7ac41c07f758a6d711"
},
"Merge+3860" : {
"exception" : "TR_IntrinsicGas",
"intrinsicGas" : "0xd00c"
}
},
"txbytes" : "0xf88c800a82d00b8080b840000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001ba048b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353a01fffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Creation transaction with gas limit just enough to cover initcode charge of EIP-3860
DataTestEnoughGasInitCode:
additionalForks:
- Merge+3860
expectException: {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

additional forks Merge+3860

transaction:
# len = 64 bytes (2 words)
data: ":raw 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
# Before EIP-3860 intrinsic gas = 53000 + len * 4 = 53256
# EIP-3860 additional initcode charge = words * 2 = 4
# EIP-3860 total intrinsic gas = 53260
gasLimit: "53260"
gasPrice: "10"
nonce: "0"
to: ""
value: "0"
v: "27"
r: "0x48b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353"
# secretkey 45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8
s: "0x1fffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804"

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Creation transaction with gas limit not enough to cover initcode charge of EIP-3860
DataTestNotEnoughGasInitCode:
additionalForks:
- Merge+3860
expectException:
Merge: ""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it is empty, then record not needed

Merge+3860: "TR_IntrinsicGas"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add Merge+3860 in additionalForks section that is missing here. the test is not generated for this fork.

transaction:
# len = 64 bytes (2 words)
data: ":raw 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
# Before EIP-3860 intrinsic gas = 53000 + len * 4 = 53256
# EIP-3860 additional initcode charge = words * 2 = 4
# EIP-3860 total intrinsic gas = 53260
gasLimit: "53259"
gasPrice: "10"
nonce: "0"
to: ""
value: "0"
v: "27"
r: "0x48b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353"
# secretkey 45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8
s: "0x1fffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804"