Skip to content

Commit 3e79581

Browse files
marioevzspencer-tb
authored andcommitted
fix(fw,tests): Withdrawal request v1 update execution-apis #549 (#600)
* fix(fw): Rename validator_public_key -> validator_pubkey * fix(tests): EIP-7002: Rename validator_public_key -> validator_pubkey * changelog
1 parent 5b93768 commit 3e79581

File tree

5 files changed

+63
-62
lines changed

5 files changed

+63
-62
lines changed

docs/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Test fixtures for use by clients are available for each release on the [Github r
2222
- ✨ Add tests for [EIP-7069: EOF - Revamped CALL instructions](https://eips.ethereum.org/EIPS/eip-7069) ([#595](https://github.com/ethereum/execution-spec-tests/pull/595)).
2323
- 🐞 Fix typos in self-destruct collision test from erroneous pytest parametrization ([#608](https://github.com/ethereum/execution-spec-tests/pull/608)).
2424
- ✨ Add tests for [EIP-3540: EOF - EVM Object Format v1](https://eips.ethereum.org/EIPS/eip-3540) ([#634](https://github.com/ethereum/execution-spec-tests/pull/634)).
25+
- 🔀 Update EIP-7002 tests to match spec changes in [ethereum/execution-apis#549](https://github.com/ethereum/execution-apis/pull/549) ([#600](https://github.com/ethereum/execution-spec-tests/pull/600))
2526

2627
### 🛠️ Framework
2728

src/ethereum_test_tools/common/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,7 +1511,7 @@ class WithdrawalRequestGeneric(RequestBase, CamelModel, Generic[NumberBoundTypeV
15111511
"""
15121512

15131513
source_address: Address = Address(0)
1514-
validator_public_key: BLSPublicKey
1514+
validator_pubkey: BLSPublicKey
15151515
amount: NumberBoundTypeVar
15161516

15171517
@classmethod
@@ -1527,7 +1527,7 @@ def to_serializable_list(self) -> List[Any]:
15271527
"""
15281528
return [
15291529
self.source_address,
1530-
self.validator_public_key,
1530+
self.validator_pubkey,
15311531
Uint(self.amount),
15321532
]
15331533

tests/prague/eip7002_el_triggerable_withdrawals/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def calldata(self) -> bytes:
5454
withdrawal.
5555
"""
5656
return self.calldata_modifier(
57-
self.validator_public_key + self.amount.to_bytes(8, byteorder="big")
57+
self.validator_pubkey + self.amount.to_bytes(8, byteorder="big")
5858
)
5959

6060
def with_source_address(self, source_address: Address) -> "WithdrawalRequest":
@@ -274,7 +274,7 @@ def get_n_fee_increment_blocks(n: int) -> List[List[WithdrawalRequestContract]]:
274274
WithdrawalRequestContract(
275275
requests=[
276276
WithdrawalRequest(
277-
validator_public_key=i,
277+
validator_pubkey=i,
278278
amount=0,
279279
fee=fee,
280280
)

0 commit comments

Comments
 (0)