From ab874ac85114d4a825d22fa519b8765b1860880b Mon Sep 17 00:00:00 2001 From: cyberthirst Date: Mon, 15 Apr 2024 16:56:43 +0200 Subject: [PATCH] lint --- tests/functional/builtins/codegen/test_abi_decode.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/functional/builtins/codegen/test_abi_decode.py b/tests/functional/builtins/codegen/test_abi_decode.py index 7898aecdec..acc4e85100 100644 --- a/tests/functional/builtins/codegen/test_abi_decode.py +++ b/tests/functional/builtins/codegen/test_abi_decode.py @@ -486,10 +486,10 @@ def f(x: Bytes[32 * 3]): assert decoded_y1 != decoded_y2 """ c = get_contract(code) - data = (0xd45754f8).to_bytes(4, "big") + data = (0xD45754F8).to_bytes(4, "big") data += (0x20).to_bytes(32, "big") data += (0x60).to_bytes(32, "big") - data += (0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa0).to_bytes(32, "big") + data += (0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA0).to_bytes(32, "big") with tx_failed(): w3.eth.send_transaction({"to": c.address, "data": data}) @@ -505,13 +505,13 @@ def f(x: Bytes[32 * 5]): decoded_y1 = _abi_decode(y, DynArray[uint256, 3]) """ c = get_contract(code) - data = (0xd45754f8).to_bytes(4, "big") - data += (0x20).to_bytes(32, "big") # tuple head - data += (0xA0).to_bytes(32, "big") # parent array head + data = (0xD45754F8).to_bytes(4, "big") + data += (0x20).to_bytes(32, "big") # tuple head + data += (0xA0).to_bytes(32, "big") # parent array head # head should be 20 and thus the decoding func will try to decode 1 word # over the end of the input data # _getelemptr_abi_helper will revert due to clamping - data += (0x40).to_bytes(32, "big") # inner array head + data += (0x40).to_bytes(32, "big") # inner array head # inner array payload: length: 3 | idx0: 3 | idx1: 3 | idx2: 3 data += (0x3).to_bytes(32, "big") * 4 with tx_failed():