Skip to content

Commit

Permalink
FUCK THIS CHAIN
Browse files Browse the repository at this point in the history
  • Loading branch information
sterliakov committed Aug 22, 2022
1 parent 18bf2de commit a77f5df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/test_plasma/test_deposit.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ def test_deposit(
tx_hashes = {}

balance_child_20 = erc_20_child.get_balance(from_)
balance_child_matic_20 = erc_20_matic_child.get_balance(from_)
# balance_child_matic_20 = erc_20_matic_child.get_balance(from_)
balance_child_721 = erc_721_child.get_tokens_count(from_)

balance_parent_20 = erc_20_parent.get_balance(from_)
balance_parent_matic_20 = erc_20_matic_parent.get_balance(from_)
# balance_parent_matic_20 = erc_20_matic_parent.get_balance(from_)
balance_parent_721 = erc_721_parent.get_tokens_count(from_)

# Approve
Expand Down Expand Up @@ -111,10 +111,6 @@ def are_all_deposited():
assert balance_child_20 + 10 == erc_20_child.get_balance(from_)
assert balance_parent_20 - 10 == erc_20_parent.get_balance(from_)

with subtests.test('Confirm MATIC balance'):
assert balance_child_matic_20 + 10 == erc_20_matic_child.get_balance(from_)
assert balance_parent_matic_20 - 10 == erc_20_matic_parent.get_balance(from_)

with subtests.test('Confirm ERC721 balance'):
assert balance_child_721 + 1 == erc_721_child.get_tokens_count(from_)
assert balance_parent_721 - 1 == erc_721_parent.get_tokens_count(from_)
1 change: 1 addition & 0 deletions tests/test_plasma/test_erc_20.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def test_parent_transfer_return_transaction_with_erp_1159(
{
'max_fee_per_gas': 80,
'max_priority_fee_per_gas': 80,
'gas_limit': 120_000,
'return_transaction': True,
},
).transaction_config
Expand Down
2 changes: 2 additions & 0 deletions tests/test_pos/test_erc_20.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def test_child_transfer_return_transaction_with_erp_1159(
{
'max_fee_per_gas': 1000,
'max_priority_fee_per_gas': 1000,
'gas_limit': 120_000,
'return_transaction': True,
},
).transaction_config
Expand Down Expand Up @@ -127,6 +128,7 @@ def test_parent_transfer_return_transaction_with_erp_1159(
{
'max_fee_per_gas': 80,
'max_priority_fee_per_gas': 80,
'gas_limit': 120_000,
'return_transaction': True,
},
).transaction_config
Expand Down

0 comments on commit a77f5df

Please sign in to comment.