Skip to content

Commit

Permalink
execution spec tests update for devnet-1 (#12179)
Browse files Browse the repository at this point in the history
Cherry pick #11127

Co-authored-by: sudeep <sudeepdino008@gmail.com>
  • Loading branch information
yperbasis and sudeepdino008 authored Oct 2, 2024
1 parent 27783b8 commit 60684fe
Show file tree
Hide file tree
Showing 194 changed files with 681,953 additions and 197,136 deletions.
6 changes: 2 additions & 4 deletions core/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package core
import (
"bytes"
"fmt"
"slices"

"github.com/holiman/uint256"
"github.com/ledgerwatch/log/v3"
Expand Down Expand Up @@ -342,10 +343,7 @@ func (st *StateTransition) TransitionDb(refunds bool, gasBailout bool) (*evmtype
rules := st.evm.ChainRules()
vmConfig := st.evm.Config()
isEIP3860 := vmConfig.HasEip3860(rules)
accessTuples := make(types2.AccessList, 0)
if msg.AccessList() != nil {
accessTuples = append(accessTuples, msg.AccessList()...)
}
accessTuples := slices.Clone[types2.AccessList](msg.AccessList())

// set code tx
auths := msg.Authorizations()
Expand Down

Large diffs are not rendered by default.

20,302 changes: 12,443 additions & 7,859 deletions tests/execution-spec-tests/byzantium/eip198_modexp_precompile/modexp/modexp.json

Large diffs are not rendered by default.

1,302 changes: 1,165 additions & 137 deletions tests/execution-spec-tests/cancun/eip1153_tstore/tstorage/gas_usage.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

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,141 @@
{
"tests/cancun/eip4788_beacon_root/test_beacon_root_contract.py::test_no_beacon_root_contract_at_transition[fork_ShanghaiToCancunAtTime15k-blockchain_test-timestamp_15000]": {
"network": "ShanghaiToCancunAtTime15k",
"genesisBlockHeader": {
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"uncleHash": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"coinbase": "0x0000000000000000000000000000000000000000",
"stateRoot": "0x5f5865c6382782f6bbb9789e0dbc0bc76f47cf6d54065a91b38a516f78260b4d",
"transactionsTrie": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"receiptTrie": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"bloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"difficulty": "0x00",
"number": "0x00",
"gasLimit": "0x016345785d8a0000",
"gasUsed": "0x00",
"timestamp": "0x00",
"extraData": "0x00",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x0000000000000000",
"baseFeePerGas": "0x07",
"withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"hash": "0x834aed6be4f5e4dc567f1dfb6a847c86e12f8e8c47c3d896949e6d8ca1dfdbed"
},
"pre": {
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b": {
"nonce": "0x00",
"balance": "0x010000000000",
"code": "0x",
"storage": {}
},
"0x0000000000000000000000000000000000000100": {
"nonce": "0x00",
"balance": "0x010000000000",
"code": "0x366000602037602060003660206000720f3df6d732807ef1319fb7b8bb8522d0beac02620186a0f16000556000516001553d6002553d600060003e600051600355",
"storage": {}
}
},
"postState": {
"0x0000000000000000000000000000000000000100": {
"nonce": "0x00",
"balance": "0x010000000000",
"code": "0x366000602037602060003660206000720f3df6d732807ef1319fb7b8bb8522d0beac02620186a0f16000556000516001553d6002553d600060003e600051600355",
"storage": {
"0x00": "0x01"
}
},
"0x000f3df6d732807ef1319fb7b8bb8522d0beac02": {
"nonce": "0x00",
"balance": "0x3b9aca00",
"code": "0x",
"storage": {}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b": {
"nonce": "0x01",
"balance": "0xfffffa63a9",
"code": "0x",
"storage": {}
},
"0xfffffffffffffffffffffffffffffffffffffffe": {
"nonce": "0x00",
"balance": "0x3b9aca00",
"code": "0x",
"storage": {}
}
},
"genesisRLP": "0xf9021df90217a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347940000000000000000000000000000000000000000a05f5865c6382782f6bbb9789e0dbc0bc76f47cf6d54065a91b38a516f78260b4da056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000808088016345785d8a0000808000a0000000000000000000000000000000000000000000000000000000000000000088000000000000000007a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421c0c0c0",
"blocks": [
{
"blockHeader": {
"parentHash": "0x834aed6be4f5e4dc567f1dfb6a847c86e12f8e8c47c3d896949e6d8ca1dfdbed",
"uncleHash": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"coinbase": "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"stateRoot": "0x0aa03d9322e2f94ac5c91c4fd18aa0d6a25dd2023876f7eaa8f50d22be2806d4",
"transactionsTrie": "0x64491dfba31aa11099c81e1c7c95f0818b4f927d4b3552143a25ea44512fe125",
"receiptTrie": "0x037c6a35920271e48744434ea58c2e865d703f151d7bfea7a823cfc9b4232bbb",
"bloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"difficulty": "0x00",
"number": "0x01",
"gasLimit": "0x016345785d8a0000",
"gasUsed": "0xcd31",
"timestamp": "0x3a98",
"extraData": "0x",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x0000000000000000",
"baseFeePerGas": "0x07",
"withdrawalsRoot": "0x2aef4d3e6939af0b4bf4c0e7572a214eb7db9ba52937e1e82ad6c64b52d2e8bb",
"blobGasUsed": "0x00",
"excessBlobGas": "0x00",
"parentBeaconBlockRoot": "0x6c31fc15422ebad28aaf9089c306702f67540b53c7eea8b7d2941044b027100f",
"hash": "0x1b049249237460237bd6f82840ca399db7f60f9f276c9270db11f6d2ee67fa19"
},
"transactions": [
{
"type": "0x02",
"chainId": "0x01",
"nonce": "0x00",
"maxPriorityFeePerGas": "0x00",
"maxFeePerGas": "0x07",
"gasLimit": "0x0f4240",
"to": "0x0000000000000000000000000000000000000100",
"value": "0x00",
"data": "0x0000000000000000000000000000000000000000000000000000000000003a98",
"accessList": [],
"v": "0x01",
"r": "0xfaa933f2812dcf366269cdad3b8bdbf6d293fe5dcd0d3313089d619e99b77c2e",
"s": "0x541ff2b494d5a6856ee685c0647a47b60a6eb7823dd0b72c74123ea33f0e4e41",
"sender": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b"
}
],
"uncleHeaders": [],
"withdrawals": [
{
"index": "0x00",
"validatorIndex": "0x00",
"address": "0x000f3df6d732807ef1319fb7b8bb8522d0beac02",
"amount": "0x01"
},
{
"index": "0x01",
"validatorIndex": "0x01",
"address": "0xfffffffffffffffffffffffffffffffffffffffe",
"amount": "0x01"
}
],
"rlp": "0xf902fff9023ea0834aed6be4f5e4dc567f1dfb6a847c86e12f8e8c47c3d896949e6d8ca1dfdbeda01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa00aa03d9322e2f94ac5c91c4fd18aa0d6a25dd2023876f7eaa8f50d22be2806d4a064491dfba31aa11099c81e1c7c95f0818b4f927d4b3552143a25ea44512fe125a0037c6a35920271e48744434ea58c2e865d703f151d7bfea7a823cfc9b4232bbbb9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800188016345785d8a000082cd31823a9880a0000000000000000000000000000000000000000000000000000000000000000088000000000000000007a02aef4d3e6939af0b4bf4c0e7572a214eb7db9ba52937e1e82ad6c64b52d2e8bb8080a06c31fc15422ebad28aaf9089c306702f67540b53c7eea8b7d2941044b027100ff888b88602f88301808007830f424094000000000000000000000000000000000000010080a00000000000000000000000000000000000000000000000000000000000003a98c001a0faa933f2812dcf366269cdad3b8bdbf6d293fe5dcd0d3313089d619e99b77c2ea0541ff2b494d5a6856ee685c0647a47b60a6eb7823dd0b72c74123ea33f0e4e41c0f2d8808094000f3df6d732807ef1319fb7b8bb8522d0beac0201d8010194fffffffffffffffffffffffffffffffffffffffe01",
"blocknumber": "1"
}
],
"lastblockhash": "0x1b049249237460237bd6f82840ca399db7f60f9f276c9270db11f6d2ee67fa19",
"sealEngine": "NoProof",
"_info": {
"hash": "0x9122b9d94212f83a31061998d8cc2c856453bb59bce460dbd5fdb0f128c6f307",
"comment": "`execution-spec-tests` generated test",
"filling-transition-tool": "evm version 1.14.6-unstable-7e5dd44a-20240705",
"description": "Test function documentation:\n\n Tests the fork transition to cancun in the case where the beacon root pre-deploy was not\n deployed in time for the fork.",
"url": "https://github.com/ethereum/execution-spec-tests/blob/devnet-1@v1.3.0/tests/cancun/eip4788_beacon_root/test_beacon_root_contract.py#L581",
"reference-spec": "https://github.com/ethereum/EIPs/blob/master/EIPS/eip-4788.md",
"reference-spec-version": "e7608fe8ac8a60934ca874f5aab7d5c1f4ff7782"
}
}
}
Loading

0 comments on commit 60684fe

Please sign in to comment.