Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Luu committed Apr 18, 2024
1 parent ce510b5 commit 93eeccb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 160 deletions.
157 changes: 0 additions & 157 deletions packages/web3/test/e2e/fixtures/sepolia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -694,163 +694,6 @@ export const sepoliaBlock = {
],
transactionsRoot: '0xbd2f86bc39fbe1ac6e24ce390d268404c199da060116437803875d2c0bfe7970',
uncles: [],

};

// sepolia block data with withdrawal properties
export const sepoliaBlockWithdrawal = {
difficulty: '0x0',
extraData: '0x496c6c756d696e61746520446d6f63726174697a6520447374726962757465',
gasLimit: '0x1c9c380',
gasUsed: '0x4952f0',
hash: '0x241dab30227f58633e69fc4128b1c2b09699ec274cd575e39e697c1e460e5791',
logsBloom:
'0x0000000c0000000002000410a0101000080100004000001000000040200040020008800000800450001040004000000008004040008000000000000000a004000000400000002080008c020800006080010c22004000010100002001400008000082a040080211000c01010002000b00080000000800000004000010200100044020008008082100010008200805800001210000200000000004000004200000820800800000000010140040504400082404000300000000100080000000400000400002113000000000000040040008240000200000000110002011000001000018122010020000002400008000000008090810000002001000200800300000',
miner: '0x1e2cd78882b12d3954a049fd82ffd691565dc0a5',
mixHash: '0xddbb2beaede8c4a7c401156c0a02c58b3c0732e25bd5bfd350a599c54309929c',
nonce: '0x0',
number: '0x3148fe',
parentHash: '0x26b0438b6b537ec888afe7b673f633a0fdd3732c3629e1dee30e962a46444e9d',
receiptsRoot: '0x1ca1776ebf36ae37a1f48770684da37fe1c8fc134954b229b1f619e5e0ad2c51',
sha3Uncles: '0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347',
size: '0xd66e',
stateRoot: '0xc9e235dd0e663f36fee8f80d860961f2e8056f4cdcce501372a77bc1fed20534',
totalDifficulty: '0x3c656d23029ab0',
timestamp: '0x642d14c0',
baseFeePerGas: '0x9',
transactions: [
'0x5d703f823e7e4d6719def234cf8683d0d34708c2b0ce0285f4b008bf555b0481',
'0xa8a6e1f58adfe40a059e037c6c2b6e07bd23aa3d32d892bfcc6f40d85f22c907',
'0xa4335f3948675d7cd43b84078e3567860b4e1ffa79e9f6e5278f1d3fc860699d',
'0x25553d98cc5c2758b653b122a461e08250a0613752258ff1ecbea813632f08ef',
'0x5b7ae021605d0fad23fd882d48762851858bf0b6188641d619481f5ea230c502',
'0x6ff0dbf6f27ac5bd4cedebca54424e4ddf5bc6db1aeba945c2d980e7d759e5c5',
'0x234db0c295cf5d70729dc85b36a3df18007c80e1e6c5dd3465f739be81b062c5',
'0x745ebf4cddbadb01df7eb32e393df6f712bad3d6f45d935151eb402fa2bee5d6',
'0x35607880ee334b3e5a2bfc419aa32d4ec2b87445a0c58b347c945265ffc8e57e',
'0xb3f527bc8306499630857a4d92578b2d492762e7828580af536ed10128953327',
'0x59b21c5451f4c6bbaef6758aa4ddac3d350ee9d6f7f79cbc8aea1e4d6d30f32a',
'0xe3708d5286b2a3fdb73db6b9409c70e121e65cd5896682f011e97b578906245c',
'0x738a0a811d13a8735bd7b5ea4b784a0dff23e6bfd2b1897303f731bb49ef19bb',
'0xd63d4edc0ca6567cea22cb342eda67d37bd4a5a5a36cb66e233f368a8f98c7cb',
'0xd383977c4ab373914a2199b5673eb43b1cb3c86a129c29a440b67b8ee491bad2',
'0x554c50ff5d6578a8ea4a352651106151d0d4b5fc683fc4071096463744b3013a',
'0x92d5693632cfc366be1a143bf63aef7b6307db1227e40d7806d1fb21e67137f7',
'0x72bb6a4add14cb640948ebd801898076372c86bf2eac41154f414738da1d1a32',
'0xc33480b85a113f779725fd2c1788ab95b066792a898ee0eebb0e98c8fa605989',
'0xa8685562865ab1e6c73816fad05a38d6ea0670565ef27add5f4bd16db852eb46',
'0x7cff5abea75fd389d37b08fa73f8d4ea6c2a00f36c715fda422c8d92f05aed78',
'0xd844bf22fcdd8fd5c472638540f114824082359ef753a4f9c929889226dec5f2',
'0xbafae79055a392cea650f90096a305d1338a170a66b58dacaf69a7feb2b3f187',
'0xc9f12beaeff3325c3b58c03f66f6526593432f623d2a873bd8ca7e9f9d3c48dc',
'0xc8314b15135d8629e2423065b853fe91d7909d7cc9450e9477e667ba84eb45a9',
'0xc96f60d36bee10caaf4b40ddc2c90e752d7d4abebdd29646efff6b8a6454d070',
'0x61f293e6fc8978ee7e4f8c47e678f44ab08bc475134952452422c9ed96ea0b65',
'0xd463fb86b29f6fe631756bf475c210bac81a596486947e1439f6e63cfed71e84',
'0xcc3a340e784872ba9dba17f268029e94ed3c7a49f44a4b8c7a4b8cfe7325b9c4',
'0x31e1fd8c0516fba03ebaddf860ca4d16a63904e23b412ed7c2832c7906cf199b',
],
transactionsRoot: '0xbd2f86bc39fbe1ac6e24ce390d268404c199da060116437803875d2c0bfe7970',
uncles: [],
"withdrawals": [
{
"address": "0xe276bc378a527a8792b353cdca5b5e53263dfb9e",
"amount": "0x3112f",
"index": "0x3a477e",
"validatorIndex": "0x38b"
},
{
"address": "0xe276bc378a527a8792b353cdca5b5e53263dfb9e",
"amount": "0x2ef5d",
"index": "0x3a477f",
"validatorIndex": "0x38c"
},
{
"address": "0xe276bc378a527a8792b353cdca5b5e53263dfb9e",
"amount": "0x2ef5d",
"index": "0x3a4780",
"validatorIndex": "0x38d"
},
{
"address": "0xe276bc378a527a8792b353cdca5b5e53263dfb9e",
"amount": "0x23743",
"index": "0x3a4781",
"validatorIndex": "0x38e"
},
{
"address": "0xe276bc378a527a8792b353cdca5b5e53263dfb9e",
"amount": "0x2ef5d",
"index": "0x3a4782",
"validatorIndex": "0x38f"
},
{
"address": "0xe276bc378a527a8792b353cdca5b5e53263dfb9e",
"amount": "0x2ef5d",
"index": "0x3a4783",
"validatorIndex": "0x390"
},
{
"address": "0xe276bc378a527a8792b353cdca5b5e53263dfb9e",
"amount": "0x2ef5d",
"index": "0x3a4784",
"validatorIndex": "0x391"
},
{
"address": "0xe276bc378a527a8792b353cdca5b5e53263dfb9e",
"amount": "0x2ef5d",
"index": "0x3a4785",
"validatorIndex": "0x392"
},
{
"address": "0xe276bc378a527a8792b353cdca5b5e53263dfb9e",
"amount": "0x2ef5d",
"index": "0x3a4786",
"validatorIndex": "0x393"
},
{
"address": "0xe276bc378a527a8792b353cdca5b5e53263dfb9e",
"amount": "0x25915",
"index": "0x3a4787",
"validatorIndex": "0x394"
},
{
"address": "0xe276bc378a527a8792b353cdca5b5e53263dfb9e",
"amount": "0x2ef5d",
"index": "0x3a4788",
"validatorIndex": "0x395"
},
{
"address": "0xe276bc378a527a8792b353cdca5b5e53263dfb9e",
"amount": "0x2ef5d",
"index": "0x3a4789",
"validatorIndex": "0x396"
},
{
"address": "0xe276bc378a527a8792b353cdca5b5e53263dfb9e",
"amount": "0x2ef5d",
"index": "0x3a478a",
"validatorIndex": "0x397"
},
{
"address": "0xe276bc378a527a8792b353cdca5b5e53263dfb9e",
"amount": "0x2ef5d",
"index": "0x3a478b",
"validatorIndex": "0x398"
},
{
"address": "0xe276bc378a527a8792b353cdca5b5e53263dfb9e",
"amount": "0x2ef5d",
"index": "0x3a478c",
"validatorIndex": "0x399"
},
{
"address": "0xe276bc378a527a8792b353cdca5b5e53263dfb9e",
"amount": "0x3112f",
"index": "0x3a478d",
"validatorIndex": "0x39a"
}
],
"withdrawalsRoot": "0xb99e42eaca3fc1000aa8be987cf107e08030c0e9ca93dc6ea6b7df69e377f953"
};

export const sepoliaBlockData: {
Expand Down
4 changes: 1 addition & 3 deletions packages/web3/test/e2e/get_block.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import Web3, { FMT_BYTES, FMT_NUMBER } from '../../src';
import { getSystemE2ETestProvider } from './e2e_utils';
import { closeOpenConnection, getSystemTestBackend, BACKEND } from '../shared_fixtures/system_tests_utils';
import { toAllVariants } from '../shared_fixtures/utils';
import { sepoliaBlock, sepoliaBlockData, sepoliaBlockHydrated, sepoliaBlockWithdrawal } from './fixtures/sepolia';
import { sepoliaBlock, sepoliaBlockData, sepoliaBlockHydrated } from './fixtures/sepolia';
import { mainnetBlockHydrated } from './fixtures/mainnet_block_hydrated';
import { mainnetBlock, mainnetBlockData } from './fixtures/mainnet';

Expand Down Expand Up @@ -67,9 +67,7 @@ describe(`${getSystemTestBackend()} tests - getBlock`, () => {
};
let expectedBlock: Block = ((): Block => {
if (getSystemTestBackend() === BACKEND.SEPOLIA) {
if (block === 'earliest' || block === 'blockHash' || block === 'blockNumber')
return hydrated ? sepoliaBlockHydrated : sepoliaBlock;
return hydrated ? sepoliaBlockHydrated : sepoliaBlockWithdrawal;
}

return hydrated ? mainnetBlockHydrated : mainnetBlock;
Expand Down

0 comments on commit 93eeccb

Please sign in to comment.