Skip to content

Commit 5acd881

Browse files
committed
fix: should use MIN_ETH_BALANCE_WEI instead of MIN_ETH_BALANCE
1 parent 729e4f1 commit 5acd881

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/aleph/sdk/chains/ethereum.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
from ..connectors.superfluid import Superfluid
2222
from ..evm_utils import (
2323
BALANCEOF_ABI,
24-
MIN_ETH_BALANCE,
2524
MIN_ETH_BALANCE_WEI,
2625
FlowUpdate,
2726
from_wei_token,
@@ -109,7 +108,7 @@ def can_transact(self, tx: TxParams, block=True) -> bool:
109108
estimated_gas = self._provider.eth.estimate_gas(tx)
110109
except Exception:
111110
estimated_gas = (
112-
MIN_ETH_BALANCE # Fallback to MIN_ETH_BALANCE if estimation fails
111+
MIN_ETH_BALANCE_WEI # Fallback to MIN_ETH_BALANCE if estimation fails
113112
)
114113

115114
valid = balance > estimated_gas if self.chain else False

0 commit comments

Comments
 (0)