Skip to content

Commit 982f52f

Browse files
committed
cleanup
1 parent 7785ec6 commit 982f52f

File tree

2 files changed

+21
-25
lines changed

2 files changed

+21
-25
lines changed

tests/frontier/opcodes/test_calldataload.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,9 @@ def test_calldataload(
8282
tx = Transaction(
8383
data=calldata,
8484
gas_limit=100_000,
85-
gas_price=0x0A,
8685
protected=fork >= Byzantium,
8786
sender=pre.fund_eoa(),
8887
to=to,
89-
value=0x01,
9088
)
9189
post = {
9290
address_a: Account(storage={0x00: expected_storage}),

tests/frontier/opcodes/test_calldatasize.py

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,26 @@
1010
@pytest.mark.parametrize(
1111
"args_size,sha3_len,storage",
1212
[
13-
("0002", "01", Account(storage={0x00: 0x02})),
14-
("0011", "01", Account(storage={0x00: 0x11})),
15-
("0021", "01", Account(storage={0x00: 0x21})),
16-
("0031", "01", Account(storage={0x00: 0x31})),
17-
("0101", "01", Account(storage={0x00: 0x101})),
18-
("0002", "02", Account(storage={0x00: 0x02})),
19-
("0011", "02", Account(storage={0x00: 0x11})),
20-
("0021", "02", Account(storage={0x00: 0x21})),
21-
("0031", "02", Account(storage={0x00: 0x31})),
22-
("0101", "02", Account(storage={0x00: 0x101})),
23-
("0002", "03", Account(storage={0x00: 0x02})),
24-
("0011", "03", Account(storage={0x00: 0x11})),
25-
("0021", "03", Account(storage={0x00: 0x21})),
26-
("0031", "03", Account(storage={0x00: 0x31})),
27-
("0101", "03", Account(storage={0x00: 0x101})),
28-
("0002", "04", Account(storage={0x00: 0x02})),
29-
("0011", "04", Account(storage={0x00: 0x11})),
30-
("0021", "04", Account(storage={0x00: 0x21})),
31-
("0031", "04", Account(storage={0x00: 0x31})),
32-
("0101", "04", Account(storage={0x00: 0x101})),
13+
("0002", "01", 0x02),
14+
("0011", "01", 0x11),
15+
("0021", "01", 0x21),
16+
("0031", "01", 0x31),
17+
("0101", "01", 0x101),
18+
("0002", "02", 0x02),
19+
("0011", "02", 0x11),
20+
("0021", "02", 0x21),
21+
("0031", "02", 0x31),
22+
("0101", "02", 0x101),
23+
("0002", "03", 0x02),
24+
("0011", "03", 0x11),
25+
("0021", "03", 0x21),
26+
("0031", "03", 0x31),
27+
("0101", "03", 0x101),
28+
("0002", "04", 0x02),
29+
("0011", "04", 0x11),
30+
("0021", "04", 0x21),
31+
("0031", "04", 0x31),
32+
("0101", "04", 0x101),
3333
],
3434
ids=[
3535
"data1_2",
@@ -88,11 +88,9 @@ def test_calldataload(
8888
tx = Transaction(
8989
data=tx_data,
9090
gas_limit=100_000,
91-
gas_price=0x0A,
9291
protected=fork >= Byzantium,
9392
sender=pre.fund_eoa(),
9493
to=to,
95-
value=0x01,
9694
)
97-
post = {address: storage}
95+
post = {address: Account(storage={0x00: storage})}
9896
state_test(pre=pre, post=post, tx=tx)

0 commit comments

Comments
 (0)