Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSchiavini committed Aug 20, 2024
1 parent aa89289 commit 89415b4
Showing 3 changed files with 25 additions and 23 deletions.
44 changes: 24 additions & 20 deletions tests/test_computation.py
Original file line number Diff line number Diff line change
@@ -13,25 +13,29 @@ def test_from_debug_trace_nested():
"from": sender,
"to": to,
"output": boa.env.generate_address(),
"calls": [{
"from": boa.env.generate_address(),
"to": boa.env.generate_address(),
"output": boa.env.generate_address(),
"calls": [],
**_required_fields,
}, {
"from": sender,
"to": to,
"output": "0x" +result.hex(),
"calls": [],
**_required_fields,
}, {
"from": boa.env.generate_address(),
"to": boa.env.generate_address(),
"output": boa.env.generate_address(),
"calls": [],
**_required_fields,
}]
"calls": [
{
"from": boa.env.generate_address(),
"to": boa.env.generate_address(),
"output": boa.env.generate_address(),
"calls": [],
**_required_fields,
},
{
"from": sender,
"to": to,
"output": "0x" + result.hex(),
"calls": [],
**_required_fields,
},
{
"from": boa.env.generate_address(),
"to": boa.env.generate_address(),
"output": boa.env.generate_address(),
"calls": [],
**_required_fields,
},
],
}
assert ZksyncComputation.from_debug_trace(output).output == result

@@ -43,7 +47,7 @@ def test_from_debug_trace_production_mode():
output = {
"from": boa.env.generate_address(),
"to": boa.env.generate_address(),
"output": "0x" +result.hex(),
"output": "0x" + result.hex(),
"calls": [],
**_required_fields,
}
3 changes: 1 addition & 2 deletions tests/test_get_compiler_output.py
Original file line number Diff line number Diff line change
@@ -31,7 +31,6 @@ def test_get_compiler_output_unexpected_key():
output_dict = {"blabla": 123, "zk_versions": 456, "version": 789}

with pytest.raises(
ValueError,
match="Expected exactly one contract key, found blabla, zk_versions",
ValueError, match="Expected exactly one contract key, found blabla, zk_versions"
):
get_compiler_output(output_dict)
1 change: 0 additions & 1 deletion tests/test_sepolia.py
Original file line number Diff line number Diff line change
@@ -4,7 +4,6 @@

from boa_zksync import EraTestNode
from boa_zksync.environment import ZERO_ADDRESS
from boa_zksync.types import ZksyncComputation


def test_dummy_contract(zksync_sepolia_fork):

0 comments on commit 89415b4

Please sign in to comment.