Skip to content

Commit b1b5186

Browse files
authored
tests: Remove start alloc balance to beacon root precompile (#238)
1 parent 1c9a4fe commit b1b5186

12 files changed

+4
-33
lines changed

tests/cancun/eip4788_beacon_root/conftest.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from ethereum_test_tools import (
99
Account,
1010
Environment,
11-
HistoryStorageAddress,
1211
TestAddress,
1312
Transaction,
1413
to_address,
@@ -128,7 +127,6 @@ def pre(
128127
source account of all test transactions, and the precompile caller account.
129128
"""
130129
return {
131-
HistoryStorageAddress: Account(balance=1),
132130
TestAddress: Account(
133131
nonce=0,
134132
balance=0x10**10,

tests/cancun/eip4844_blobs/test_blob_txs.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,7 @@
2121

2222
import pytest
2323

24-
from ethereum_test_tools import (
25-
Account,
26-
Block,
27-
BlockchainTestFiller,
28-
Environment,
29-
Header,
30-
HistoryStorageAddress,
31-
)
24+
from ethereum_test_tools import Account, Block, BlockchainTestFiller, Environment, Header
3225
from ethereum_test_tools import Opcodes as Op
3326
from ethereum_test_tools import (
3427
Storage,
@@ -302,7 +295,6 @@ def pre( # noqa: D103
302295
blocks.
303296
"""
304297
return {
305-
HistoryStorageAddress: Account(balance=1),
306298
TestAddress: Account(balance=total_account_minimum_balance + account_balance_modifier),
307299
}
308300

tests/cancun/eip4844_blobs/test_blob_txs_full.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
BlockchainTestFiller,
1515
Environment,
1616
Header,
17-
HistoryStorageAddress,
1817
TestAddress,
1918
Transaction,
2019
to_address,
@@ -227,7 +226,6 @@ def pre() -> Dict:
227226
source account of all test transactions.
228227
"""
229228
return {
230-
HistoryStorageAddress: Account(balance=1),
231229
TestAddress: Account(balance=10**40),
232230
}
233231

tests/cancun/eip4844_blobs/test_blobhash_opcode.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
Block,
2727
BlockchainTestFiller,
2828
CodeGasMeasure,
29-
HistoryStorageAddress,
3029
TestAddress,
3130
Transaction,
3231
to_address,
@@ -46,7 +45,6 @@
4645
@pytest.fixture
4746
def pre(): # noqa: D103
4847
return {
49-
HistoryStorageAddress: Account(balance=1),
5048
TestAddress: Account(balance=10000000000000000000000),
5149
}
5250

tests/cancun/eip4844_blobs/test_excess_blob_gas.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
BlockchainTestFiller,
3434
Environment,
3535
Header,
36-
HistoryStorageAddress,
3736
TestAddress,
3837
TestAddress2,
3938
Transaction,
@@ -165,7 +164,6 @@ def tx_exact_cost(tx_value: int, tx_max_fee_per_gas: int, tx_data_cost: int) ->
165164
@pytest.fixture
166165
def pre(tx_exact_cost: int) -> Mapping[str, Account]: # noqa: D103
167166
return {
168-
HistoryStorageAddress: Account(balance=1),
169167
TestAddress: Account(balance=tx_exact_cost),
170168
TestAddress2: Account(balance=10**40),
171169
}

tests/cancun/eip4844_blobs/test_excess_blob_gas_fork_transition.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
BlockchainTestFiller,
1515
Environment,
1616
Header,
17-
HistoryStorageAddress,
1817
TestAddress,
1918
Transaction,
2019
add_kzg_version,
@@ -43,7 +42,6 @@ def env() -> Environment: # noqa: D103
4342
@pytest.fixture
4443
def pre() -> Mapping[str, Account]: # noqa: D103
4544
return {
46-
HistoryStorageAddress: Account(balance=1),
4745
TestAddress: Account(balance=10**40),
4846
}
4947

tests/cancun/eip4844_blobs/test_point_evaluation_precompile.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
Auto,
4141
Block,
4242
BlockchainTestFiller,
43-
HistoryStorageAddress,
4443
Storage,
4544
TestAddress,
4645
Transaction,
@@ -174,7 +173,6 @@ def pre(
174173
source account of all test transactions, and the precompile caller account.
175174
"""
176175
return {
177-
HistoryStorageAddress: Account(balance=1),
178176
TestAddress: Account(
179177
nonce=0,
180178
balance=0x10**18,
@@ -518,7 +516,6 @@ def test_point_evaluation_precompile_gas_tx_to(
518516
"""
519517
start_balance = 10**18
520518
pre = {
521-
HistoryStorageAddress: Account(balance=1),
522519
TestAddress: Account(
523520
nonce=0,
524521
balance=start_balance,
@@ -593,7 +590,6 @@ def test_point_evaluation_precompile_before_fork(
593590
precompile_caller_address = to_address(0x100)
594591

595592
pre = {
596-
HistoryStorageAddress: Account(balance=1),
597593
TestAddress: Account(
598594
nonce=0,
599595
balance=0x10**18,

tests/cancun/eip4844_blobs/test_point_evaluation_precompile_gas.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
Block,
1414
BlockchainTestFiller,
1515
CodeGasMeasure,
16-
HistoryStorageAddress,
1716
TestAddress,
1817
Transaction,
1918
copy_opcode_cost,
@@ -143,7 +142,6 @@ def pre(
143142
source account of all test transactions, and the precompile caller account.
144143
"""
145144
return {
146-
HistoryStorageAddress: Account(balance=1),
147145
TestAddress: Account(
148146
nonce=0,
149147
balance=0x10**18,

tests/cancun/eip5656_mcopy/test_mcopy.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import pytest
1010
from ethereum.crypto.hash import keccak256
1111

12-
from ethereum_test_tools import Account, Environment, HistoryStorageAddress
12+
from ethereum_test_tools import Account, Environment
1313
from ethereum_test_tools import Opcodes as Op
1414
from ethereum_test_tools import (
1515
StateTestFiller,
@@ -108,7 +108,6 @@ def bytecode_storage(
108108
@pytest.fixture
109109
def pre(bytecode_storage: Tuple[bytes, Storage]) -> Mapping: # noqa: D103
110110
return {
111-
HistoryStorageAddress: Account(balance=1),
112111
TestAddress: Account(balance=10**40),
113112
code_address: Account(code=bytecode_storage[0]),
114113
}

tests/cancun/eip5656_mcopy/test_mcopy_contexts.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
import pytest
1111

12-
from ethereum_test_tools import Account, Environment, HistoryStorageAddress, OpcodeCallArg
12+
from ethereum_test_tools import Account, Environment, OpcodeCallArg
1313
from ethereum_test_tools import Opcodes as Op
1414
from ethereum_test_tools import (
1515
StateTestFiller,
@@ -151,7 +151,6 @@ def pre( # noqa: D103
151151
callee_bytecode: bytes,
152152
) -> Mapping:
153153
return {
154-
HistoryStorageAddress: Account(balance=1),
155154
TestAddress: Account(balance=10**40),
156155
code_address: Account(code=bytecode_storage[0]),
157156
callee_address: Account(code=callee_bytecode),

0 commit comments

Comments
 (0)