Skip to content

Commit bf6b494

Browse files
authored
Merge pull request #2764 from jsign/jsign-fix-withrawals-type
feat(zkevm): Fix Withdrawal.amount type to comply to the consensus specs
2 parents fe7e68f + dff46d9 commit bf6b494

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ethereum/forks/amsterdam/stateless_ssz.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class SszWithdrawal(Container):
6565
index: uint64
6666
validator_index: uint64
6767
address: ByteVector[20]
68-
amount: uint256
68+
amount: uint64
6969

7070

7171
class SszExecutionPayload(Container):
@@ -180,7 +180,7 @@ def _withdrawal_to_ssz(w: Withdrawal) -> SszWithdrawal:
180180
index=uint64(int(w.index)),
181181
validator_index=uint64(int(w.validator_index)),
182182
address=ByteVector[20](bytes(w.address)),
183-
amount=uint256(int(w.amount)),
183+
amount=uint64(int(w.amount)),
184184
)
185185

186186

0 commit comments

Comments
 (0)