Skip to content

Commit

Permalink
switch tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rakita committed Aug 28, 2024
1 parent f56ff19 commit 1cec60d
Show file tree
Hide file tree
Showing 84 changed files with 431,367 additions and 3,286 deletions.
7 changes: 7 additions & 0 deletions crates/primitives/src/eip7702/bytecode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,17 @@ mod tests {
#[test]
fn sanity_decode() {
let raw = bytes!("ef01deadbeef");
assert_eq!(
Eip7702Bytecode::new_raw(raw),
Err(Eip7702DecodeError::InvalidLength)
);

let raw = bytes!("ef0101deadbeef00000000000000000000000000000000");
assert_eq!(
Eip7702Bytecode::new_raw(raw),
Err(Eip7702DecodeError::UnsupportedVersion)
);

let raw = bytes!("ef0100deadbeef00000000000000000000000000000000");
let address = raw[3..].try_into().unwrap();
assert_eq!(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"0x0000000000000000000000000000000000001000": {
"nonce": "0x01",
"balance": "0x00",
"code": "0x36600060003760006000366000600b6101f4fa6001553d6002553d600060003e3d600020600355",
"code": "0x36600060003760006000366000600b6101f4fa6000553d6001553d600060003e3d600020600255",
"storage": {}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b": {
Expand Down Expand Up @@ -43,7 +43,7 @@
"post": {
"Prague": [
{
"hash": "0x1c2da50e9ab3591c5431247d1b8aa5fdf0b7a96d2aa9b8d6c51a49a5a261f380",
"hash": "0xccffbb6d6cc142dc1c0cfe2ad34831fe67b84d88367cef3000801251ae0c0b5e",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"txbytes": "0xf90162800a8398987494000000000000000000000000000000000000100080b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000026a05945f4ac2b4d0e3040eb5b7473aeeb6cdceec63b6695dbf3b3b018f9f88bc2a1a012e77e347c6e3d67beb5a1e9dbbf141813fdc78ffa421a46732c06931115c826",
"indexes": {
Expand All @@ -55,11 +55,11 @@
]
},
"_info": {
"hash": "0x4db1874fa1e7a6c6672b7f0bad31fa76d433d493e35edc7a7f787a0fb65890f4",
"hash": "0x2e3ded716c0ff6bb5990f237361af729526b6db7d34d505eb3d225b15382fbed",
"comment": "`execution-spec-tests` generated test",
"filling-transition-tool": "evm version 1.14.6-unstable-7e5dd44a-20240705",
"filling-transition-tool": "ethereumjs t8n v1",
"description": "Test function documentation:\n\n Test the BLS12_G1ADD precompile using different call types.",
"url": "https://github.com/ethereum/execution-spec-tests/blob/devnet-1@v1.3.0/tests/prague/eip2537_bls_12_381_precompiles/test_bls12_g1add.py#L204",
"url": "https://github.com/ethereum/execution-spec-tests/blob/pectra-devnet-3@v1.4.0/tests/prague/eip2537_bls_12_381_precompiles/test_bls12_g1add.py#L204",
"reference-spec": "https://github.com/ethereum/EIPs/blob/master/EIPS/eip-2537.md",
"reference-spec-version": "cd0f016ad0c4c68b8b1f5c502ef61ab9353b6e5e"
}
Expand All @@ -79,7 +79,7 @@
"0x0000000000000000000000000000000000001000": {
"nonce": "0x01",
"balance": "0x00",
"code": "0x36600060003760006000366000600b6101f4f46001553d6002553d600060003e3d600020600355",
"code": "0x36600060003760006000366000600b6101f4f46000553d6001553d600060003e3d600020600255",
"storage": {}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b": {
Expand Down Expand Up @@ -108,7 +108,7 @@
"post": {
"Prague": [
{
"hash": "0xc4b02280984dbb01d152f797cfb85e0446cc31fe3bde7a5490468da524e0826e",
"hash": "0xe2d9ddb49ab5d6fdd95996762aad60abfb61a80dfc70f79e9bb8e1e71080ee18",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"txbytes": "0xf90162800a8398987494000000000000000000000000000000000000100080b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000026a05945f4ac2b4d0e3040eb5b7473aeeb6cdceec63b6695dbf3b3b018f9f88bc2a1a012e77e347c6e3d67beb5a1e9dbbf141813fdc78ffa421a46732c06931115c826",
"indexes": {
Expand All @@ -120,11 +120,11 @@
]
},
"_info": {
"hash": "0xb44f0140b97d6f1a7d781a5914970e8635837ab5c92736a3b088f0aa287584dc",
"hash": "0xdba64cf0503ae5e28a75d8acc06086e58a78b7b30b7c17c9c4084f1e725c5a97",
"comment": "`execution-spec-tests` generated test",
"filling-transition-tool": "evm version 1.14.6-unstable-7e5dd44a-20240705",
"filling-transition-tool": "ethereumjs t8n v1",
"description": "Test function documentation:\n\n Test the BLS12_G1ADD precompile using different call types.",
"url": "https://github.com/ethereum/execution-spec-tests/blob/devnet-1@v1.3.0/tests/prague/eip2537_bls_12_381_precompiles/test_bls12_g1add.py#L204",
"url": "https://github.com/ethereum/execution-spec-tests/blob/pectra-devnet-3@v1.4.0/tests/prague/eip2537_bls_12_381_precompiles/test_bls12_g1add.py#L204",
"reference-spec": "https://github.com/ethereum/EIPs/blob/master/EIPS/eip-2537.md",
"reference-spec-version": "cd0f016ad0c4c68b8b1f5c502ef61ab9353b6e5e"
}
Expand All @@ -144,7 +144,7 @@
"0x0000000000000000000000000000000000001000": {
"nonce": "0x01",
"balance": "0x00",
"code": "0x366000600037600060003660006000600b6101f4f26001553d6002553d600060003e3d600020600355",
"code": "0x366000600037600060003660006000600b6101f4f26000553d6001553d600060003e3d600020600255",
"storage": {}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b": {
Expand Down Expand Up @@ -173,7 +173,7 @@
"post": {
"Prague": [
{
"hash": "0x262bbf96e391586fb0af9b889c2c7734a5633b5eb349e905c5f2c6825b7eab33",
"hash": "0x519018728d4e307feaecc6fe7a7bfe42290df8c2e1f24e278043e200db6f26b0",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"txbytes": "0xf90162800a8398987494000000000000000000000000000000000000100080b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000026a05945f4ac2b4d0e3040eb5b7473aeeb6cdceec63b6695dbf3b3b018f9f88bc2a1a012e77e347c6e3d67beb5a1e9dbbf141813fdc78ffa421a46732c06931115c826",
"indexes": {
Expand All @@ -185,11 +185,11 @@
]
},
"_info": {
"hash": "0x35d5498fde15f8e4646acb10eec36ceceee3c8623c4f87d264cc42271fee4151",
"hash": "0xa767492cab895421d3833a0009876bdb8e5ac33d3257a3898e40f5be3cf4d467",
"comment": "`execution-spec-tests` generated test",
"filling-transition-tool": "evm version 1.14.6-unstable-7e5dd44a-20240705",
"filling-transition-tool": "ethereumjs t8n v1",
"description": "Test function documentation:\n\n Test the BLS12_G1ADD precompile using different call types.",
"url": "https://github.com/ethereum/execution-spec-tests/blob/devnet-1@v1.3.0/tests/prague/eip2537_bls_12_381_precompiles/test_bls12_g1add.py#L204",
"url": "https://github.com/ethereum/execution-spec-tests/blob/pectra-devnet-3@v1.4.0/tests/prague/eip2537_bls_12_381_precompiles/test_bls12_g1add.py#L204",
"reference-spec": "https://github.com/ethereum/EIPs/blob/master/EIPS/eip-2537.md",
"reference-spec-version": "cd0f016ad0c4c68b8b1f5c502ef61ab9353b6e5e"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"0x0000000000000000000000000000000000001000": {
"nonce": "0x01",
"balance": "0x00",
"code": "0x366000600037600060003660006000600b6101f5f16001553d6002553d600060003e3d600020600355",
"code": "0x366000600037600060003660006000600b6101f5f16000553d6001553d600060003e3d600020600255",
"storage": {}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b": {
Expand Down Expand Up @@ -43,7 +43,7 @@
"post": {
"Prague": [
{
"hash": "0xe1de44de1a6064c257bfb11138316bf37f45cc6bd831f28ecec45488edfaaed9",
"hash": "0xc5eb6cfddb9d95d33630bf573d665721c765e22a591da1f4a1be17b568c07bf6",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"txbytes": "0xf90162800a8398987494000000000000000000000000000000000000100080b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000026a05945f4ac2b4d0e3040eb5b7473aeeb6cdceec63b6695dbf3b3b018f9f88bc2a1a012e77e347c6e3d67beb5a1e9dbbf141813fdc78ffa421a46732c06931115c826",
"indexes": {
Expand All @@ -55,11 +55,11 @@
]
},
"_info": {
"hash": "0x562c0acc983a176db605541762e75efce5f259c4c44912a652865d427fa0d38a",
"hash": "0xfac9d87f533bd53bd38c31e149b29751c362d2529feec59e6f6aa4d831de7208",
"comment": "`execution-spec-tests` generated test",
"filling-transition-tool": "evm version 1.14.6-unstable-7e5dd44a-20240705",
"filling-transition-tool": "ethereumjs t8n v1",
"description": "Test function documentation:\n\n Test the BLS12_G1ADD precompile gas requirements.",
"url": "https://github.com/ethereum/execution-spec-tests/blob/devnet-1@v1.3.0/tests/prague/eip2537_bls_12_381_precompiles/test_bls12_g1add.py#L170",
"url": "https://github.com/ethereum/execution-spec-tests/blob/pectra-devnet-3@v1.4.0/tests/prague/eip2537_bls_12_381_precompiles/test_bls12_g1add.py#L170",
"reference-spec": "https://github.com/ethereum/EIPs/blob/master/EIPS/eip-2537.md",
"reference-spec-version": "cd0f016ad0c4c68b8b1f5c502ef61ab9353b6e5e"
}
Expand All @@ -79,7 +79,7 @@
"0x0000000000000000000000000000000000001000": {
"nonce": "0x01",
"balance": "0x00",
"code": "0x366000600037600060003660006000600b6101f3f16001553d600255",
"code": "0x366000600037600060003660006000600b6101f3f16000553d600155",
"storage": {}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b": {
Expand Down Expand Up @@ -108,7 +108,7 @@
"post": {
"Prague": [
{
"hash": "0xb8a2b88c93ea748552ef18de863f22869b2db5755a5ffb0506d7db462d36288f",
"hash": "0xda6b1aad9785707f835411f04ba328c15c31451da1b5a47ad44dca47f4f9cd58",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"txbytes": "0xf90162800a8398987494000000000000000000000000000000000000100080b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000026a05945f4ac2b4d0e3040eb5b7473aeeb6cdceec63b6695dbf3b3b018f9f88bc2a1a012e77e347c6e3d67beb5a1e9dbbf141813fdc78ffa421a46732c06931115c826",
"indexes": {
Expand All @@ -120,11 +120,11 @@
]
},
"_info": {
"hash": "0x0cbf6c3e9b1d0714c8540f6418a2880ab21cc518f7a02263a23b61a0ba6edbea",
"hash": "0xeebcec6d85409fd73c8e1d4367453247bccaf8a7eff592a3e18876150d3067ec",
"comment": "`execution-spec-tests` generated test",
"filling-transition-tool": "evm version 1.14.6-unstable-7e5dd44a-20240705",
"filling-transition-tool": "ethereumjs t8n v1",
"description": "Test function documentation:\n\n Test the BLS12_G1ADD precompile gas requirements.",
"url": "https://github.com/ethereum/execution-spec-tests/blob/devnet-1@v1.3.0/tests/prague/eip2537_bls_12_381_precompiles/test_bls12_g1add.py#L170",
"url": "https://github.com/ethereum/execution-spec-tests/blob/pectra-devnet-3@v1.4.0/tests/prague/eip2537_bls_12_381_precompiles/test_bls12_g1add.py#L170",
"reference-spec": "https://github.com/ethereum/EIPs/blob/master/EIPS/eip-2537.md",
"reference-spec-version": "cd0f016ad0c4c68b8b1f5c502ef61ab9353b6e5e"
}
Expand Down
Loading

0 comments on commit 1cec60d

Please sign in to comment.