Skip to content

Commit

Permalink
test: make test_full_required_deposit_fee more flexible
Browse files Browse the repository at this point in the history
  • Loading branch information
petarTxFusion committed Apr 22, 2024
1 parent 08e9fdf commit 771f88c
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions tests/integration/test_wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,17 +240,14 @@ def test_deposit_token(self):
self.assertGreater(balance_l2_after, balance_l2_beore)

def test_full_required_deposit_fee(self):
fee_data = FullDepositFee(
base_cost=285096500000000,
l1_gas_limit=110581,
l2_gas_limit=570193,
max_fee_per_gas=1500000010,
max_priority_fee_per_gas=1500000000,
)
fee = self.wallet.get_full_required_deposit_fee(
DepositTransaction(token=ADDRESS_DEFAULT, to=self.wallet.address)
)
self.assertEqual(fee, fee_data)
self.assertTrue(fee.base_cost > 0)
self.assertTrue(fee.l1_gas_limit > 0)
self.assertTrue(fee.l2_gas_limit > 0)
self.assertTrue(fee.max_fee_per_gas > 0)
self.assertTrue(fee.max_priority_fee_per_gas > 0)

def test_transfer_eth(self):
amount = 7_000_000_000
Expand Down

0 comments on commit 771f88c

Please sign in to comment.