Skip to content

Commit

Permalink
renamed proof_addr to pub_addr
Browse files Browse the repository at this point in the history
  • Loading branch information
weijiekoh committed Feb 24, 2023
1 parent 68a126a commit 3c12499
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fix_verifier_sol.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
addr_as_num = int(addr, 16)

if addr_as_num <= max_pubinputs_addr:
proof_addr = hex(addr_as_num + 32)
line = line.replace(calldata_and_addr, "mload(add(pubInputs, " + proof_addr + "))")
pub_addr = hex(addr_as_num + 32)
line = line.replace(calldata_and_addr, "mload(add(pubInputs, " + pub_addr + "))")
else:
proof_addr = hex(addr_as_num - max_pubinputs_addr)
line = line.replace(calldata_and_addr, "mload(add(proof, " + proof_addr + "))")
Expand Down

0 comments on commit 3c12499

Please sign in to comment.