Skip to content

Commit fcdda58

Browse files
authored
feat: Update originTokenAmount in getLocalTransferFee (#7229)
1 parent de332ab commit fcdda58

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

.changeset/few-keys-wait.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hyperlane-xyz/sdk": minor
3+
---
4+
5+
Update hardcoded `originTokenAmount` of getLocalTransferFee from 1 to 2 wei.

typescript/cli/src/tests/ethereum/commands/warp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export function hyperlaneWarpSendRelay({
237237
destination,
238238
warpCorePath,
239239
relay = true,
240-
value = 1,
240+
value = 2,
241241
chains,
242242
roundTrip,
243243
}: {

typescript/cli/src/tests/ethereum/warp/warp-bridge-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export async function collateralizeWarpTokens(
257257
chainName
258258
].collateral.transfer(
259259
config[chainName].addressOrDenom,
260-
parseUnits('1', decimals),
260+
parseUnits('2', decimals),
261261
);
262262

263263
await tx.wait();

typescript/sdk/src/warp/WarpCore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export class WarpCore {
224224
destinationMetadata.bech32Prefix,
225225
);
226226
const txs = await this.getTransferRemoteTxs({
227-
originTokenAmount: originToken.amount(1),
227+
originTokenAmount: originToken.amount(2),
228228
destination,
229229
sender,
230230
recipient,

0 commit comments

Comments
 (0)