Skip to content

Commit bcff881

Browse files
refactor: update vector and data types
1 parent d94591e commit bcff881

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

tests/byzantium/eip198_modexp_precompile/helpers.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ def from_bytes(cls, input_data: Bytes | str) -> "ModExpInput":
8484

8585
modulus = padded_input_data[current_index : current_index + modulus_length]
8686

87-
modulus = modulus.ljust(min(1024, modulus_length), b"\x00")
88-
8987
return cls(base=base, exponent=exponent, modulus=modulus, raw_input=input_data)
9088

9189

tests/osaka/eip7883_modexp_gas_increase/test_modexp_thresholds.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@
88
import pytest
99

1010
from ethereum_test_checklists import EIPChecklist
11-
from ethereum_test_tools import (
12-
Alloc,
13-
StateTestFiller,
14-
Transaction,
15-
)
11+
from ethereum_test_tools import Alloc, StateTestFiller, Transaction
1612
from ethereum_test_tools.vm.opcode import Opcodes as Op
1713

1814
from ...byzantium.eip198_modexp_precompile.helpers import ModExpInput

tests/osaka/eip7883_modexp_gas_increase/vector/legacy.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@
135135
"Name": "legacy-case-27"
136136
},
137137
{
138-
"Input": "000000000000000000000000000000000000000000000000000000000000002100000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010035ee4e488f45e64d2f07becd54646357381d32f30b74c299a8c25d5202c04938ef6c4764a04f10fc908b78c4486886000f6d290251a79681a83b950c7e5c373510",
139-
"Expected": "01",
138+
"Input": "000000000000000000000000000000000000000000000000000000000000002100000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010035ee4e488f45e64d2f07becd54646357381d32f30b74c299a8c25d5202c04938ef6c4764a04f10fc908b78c4486886000f6d290251a79681a83b950c7e5c37351",
139+
"Expected": "01000000000000000000000000000000",
140140
"Name": "legacy-case-31"
141141
},
142142
{

0 commit comments

Comments
 (0)