Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions web3/_utils/method_formatters.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ def storage_key_to_hexstr(value: bytes | int | str) -> HexStr:
"address": to_checksum_address,
"nonce": to_integer_if_hex,
"yParity": to_integer_if_hex,
"r": to_hexbytes(32, variable_length=True),
"s": to_hexbytes(32, variable_length=True),
"r": to_integer_if_hex,
"s": to_integer_if_hex,
}
),
),
Expand Down
8 changes: 4 additions & 4 deletions web3/_utils/module_testing/eth_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,8 +774,8 @@ async def test_async_sign_authorization_send_raw_and_send_set_code_transactions(
assert get_auth["address"] == async_math_contract.address
assert get_auth["nonce"] == nonce + 1
assert isinstance(get_auth["yParity"], int)
assert isinstance(get_auth["r"], HexBytes)
assert isinstance(get_auth["s"], HexBytes)
assert isinstance(get_auth["r"], int)
assert isinstance(get_auth["s"], int)

# reset code
reset_auth = {
Expand Down Expand Up @@ -3919,8 +3919,8 @@ def test_sign_authorization_send_raw_and_send_set_code_transactions(
assert get_auth["address"] == math_contract.address
assert get_auth["nonce"] == nonce + 1
assert isinstance(get_auth["yParity"], int)
assert isinstance(get_auth["r"], HexBytes)
assert isinstance(get_auth["s"], HexBytes)
assert isinstance(get_auth["r"], int)
assert isinstance(get_auth["s"], int)

# reset code
reset_auth = {
Expand Down
4 changes: 2 additions & 2 deletions web3/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ class SetCodeAuthorizationData(TypedDict):
address: ChecksumAddress
nonce: Nonce
yParity: int
r: HexBytes
s: HexBytes
r: int
s: int


# syntax b/c "from" keyword not allowed w/ class construction
Expand Down