Skip to content

Commit

Permalink
Merge pull request #45 from jsign/jsign-block-witness
Browse files Browse the repository at this point in the history
Fix test
  • Loading branch information
spencer-tb authored Sep 5, 2024
2 parents dfed0c0 + ab5e589 commit 184a221
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,15 +202,15 @@ def _generic_codecopy(
codecopy_code = Op.CODECOPY(0, offset, size) * repeat
pre = {
TestAddress: Account(balance=1000000000000000000000),
TestAddress2: Account(code=codecopy_code + Op.PUSH0 * (code_size - len(codecopy_code))),
TestAddress2: Account(code=codecopy_code + Op.PUSH0 * max(0, size - len(codecopy_code))),
}

to: Address | None = TestAddress2
data = Bytecode()
if instr == Op.EXTCODECOPY:
to = None
extcodecopy_code = Op.EXTCODECOPY(TestAddress2, 0, offset, size) * repeat
data = Initcode(deploy_code=extcodecopy_code)
data = extcodecopy_code

tx = Transaction(
ty=0x0,
Expand Down

0 comments on commit 184a221

Please sign in to comment.