Skip to content

Commit a03da01

Browse files
VolodymyrBgfselmo
authored andcommitted
test(accounts): add assertion for expected_bytes in test_eth_account_sign
1 parent fe30353 commit a03da01

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/core/eth-module/test_accounts.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ def test_eth_account_sign(
264264
acct, message_text, key, expected_bytes, expected_hash, v, r, s, signature
265265
):
266266
message = encode_defunct(text=message_text)
267+
assert message.body == expected_bytes
267268
signed_message = Web3.keccak(
268269
b"\x19Ethereum Signed Message:\n"
269270
+ bytes(f"{len(message.body)}", encoding="utf-8")
@@ -357,9 +358,9 @@ def test_eth_account_sign(
357358
),
358359
(
359360
{
360-
"gas": 100000,
361-
"maxFeePerGas": 2000000000,
362-
"maxPriorityFeePerGas": 2000000000,
361+
"gas": "0x186a0",
362+
"maxFeePerGas": "0x77359400",
363+
"maxPriorityFeePerGas": "0x77359400",
363364
"data": "0x5544",
364365
"nonce": "0x2",
365366
"to": "0x96216849c49358B10257cb55b28eA603c874b05E",

0 commit comments

Comments
 (0)