Skip to content

Commit

Permalink
fix(fw): eip-6110 remove deposit root test
Browse files Browse the repository at this point in the history
  • Loading branch information
marioevz committed May 8, 2024
1 parent 9a2171f commit 0badc66
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions src/ethereum_test_tools/tests/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1701,36 +1701,3 @@ def test_parsing(json_str: str, type_adapter: TypeAdapter, expected: Any):
Test that parsing the given JSON string returns the expected object.
"""
assert type_adapter.validate_json(json_str) == expected


def test_deposit():
"""
Test that the DepositRequest class can be instantiated and its attributes are set correctly.
"""
deposit = DepositRequest(
pubkey=0x01,
withdrawal_credentials=0x02,
amount=32_000_000_000,
signature=0x03,
index=0x0,
)
assert deposit.deposit_data_root == bytes.fromhex(
"85acb6376c2707b118225da41825974c12b5924a05c6a53b988c9cbc33c55b05"
)

assert deposit.calldata == bytes.fromhex(
"22895118"
"0000000000000000000000000000000000000000000000000000000000000080"
"00000000000000000000000000000000000000000000000000000000000000d0"
"0000000000000000000000000000000000000000000000000000000000000110"
"85acb6376c2707b118225da41825974c12b5924a05c6a53b988c9cbc33c55b05"
"0000000000000000000000000000000000000000000000000000000000000030"
"0000000000000000000000000000000000000000000000000000000000000000"
"00000000000000000000000000000001"
"0000000000000000000000000000000000000000000000000000000000000020"
"0000000000000000000000000000000000000000000000000000000000000002"
"0000000000000000000000000000000000000000000000000000000000000060"
"0000000000000000000000000000000000000000000000000000000000000000"
"0000000000000000000000000000000000000000000000000000000000000000"
"0000000000000000000000000000000000000000000000000000000000000003"
)

0 comments on commit 0badc66

Please sign in to comment.