Commit 3142fb1
committed
fix: use native token decimals in custom fee token deposit test
The deposit test used parseEther('2') (always 2e18) regardless of the
token's native decimals. Since EthBridger.deposit() passes the amount
directly to depositERC20(uint256) without scaling, this caused failures
for non-18 decimal tokens (16-decimal: exceeds balance, 20-decimal:
value mismatch on L2). These tests were never actually running under
mocha because async describe callbacks aren't awaited.1 parent 5cabda5 commit 3142fb1
3 files changed
Lines changed: 1840 additions & 4 deletions
File tree
- .claude/worktrees
- packages/sdk/tests/integration/custom-fee-token
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments