Skip to content

Commit 0c037c7

Browse files
committed
code is bytes
1 parent 15700a2 commit 0c037c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/zkevm/test_worst_compute.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def jump_seq():
304304

305305
# Create and deploy the jump-intensive contract
306306
jumps_code = sum([jump_seq() for _ in range(seqs_per_call)])
307-
jumps_address = pre.deploy_contract(code=jumps_code)
307+
jumps_address = pre.deploy_contract(code=bytes(jumps_code))
308308

309309
# Call the contract repeatedly until gas runs out.
310310
caller_code = While(body=Op.POP(Op.CALL(address=jumps_address)))
@@ -339,7 +339,7 @@ def test_worst_jumpdests(
339339

340340
# Create and deploy a contract with many JUMPDESTs
341341
jumpdests_code = sum([Op.JUMPDEST] * MAX_CODE_SIZE)
342-
jumpdests_address = pre.deploy_contract(code=jumpdests_code)
342+
jumpdests_address = pre.deploy_contract(code=bytes(jumpdests_code))
343343

344344
# Call the contract repeatedly until gas runs out.
345345
caller_code = While(body=Op.POP(Op.CALL(address=jumpdests_address)))

0 commit comments

Comments
 (0)