You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix: cover L2→AH path + missing dry-run RefundSurplus + safer envName switch
Three follow-ups to clara/fix-eth-dust-usdt review:
1. transfers/l2ToPolkadot/erc20ToAH.ts: fee() and tx() were untouched in
the prior PR; the L2 path still trapped USDT. Add the executionFee
buffer and pass userAssetLocation to sendMessageXCM.
2. xcmbuilders/toPolkadot/pnaToParachain.ts: buildParachainPNAReceivedXcmOnDestination
(the V4 destination dry-run helper for PNA→parachain) was missing
RefundSurplus before its DepositAsset, so the dry-run hides BuyExecution
surplus dust the same way the V5 builders did before fix.
3. xcmBuilder.ts: accountToLocationWithNetwork silently returned undefined
for unknown envName values (causing decode errors downstream) and was
missing local_e2e in the AccountKey20 branch. Add default throw and
the missing case.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fixes
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments