sdk/js: support surprise new wasm parameters

This commit is contained in:
Evan Gray 2022-06-14 18:26:21 +00:00 committed by Evan Gray
parent 24c5b17267
commit f5aad60600
5 changed files with 10 additions and 10 deletions

View File

@ -29,7 +29,7 @@ export default async function addLiquidity(
to_mint,
liquidity_token_account,
lp_share_token_account,
amount
amount.valueOf()
)
);
const transaction = new Transaction().add(approvalIx, ix);

View File

@ -29,7 +29,7 @@ export default async function claimShares(
to_mint,
output_token_account,
lp_share_token_account,
amount
amount.valueOf()
)
);
const transaction = new Transaction().add(approvalIx, ix);

View File

@ -29,7 +29,7 @@ export default async function migrateTokens(
to_mint,
input_token_account,
output_token_account,
amount
amount.valueOf()
)
);
const transaction = new Transaction().add(approvalIx, ix);

View File

@ -29,7 +29,7 @@ export default async function removeLiquidity(
to_mint,
liquidity_token_account,
lp_share_token_account,
amount
amount.valueOf()
)
);
const transaction = new Transaction().add(approvalIx, ix);

View File

@ -308,7 +308,7 @@ export async function transferNativeSol(
ancillaryKeypair.publicKey.toString(),
WSOL_ADDRESS,
nonce,
amount,
amount.valueOf(),
relayerFee,
targetAddress,
coalesceChainId(targetChain),
@ -322,7 +322,7 @@ export async function transferNativeSol(
ancillaryKeypair.publicKey.toString(),
WSOL_ADDRESS,
nonce,
amount,
amount.valueOf(),
relayerFee,
targetAddress,
coalesceChainId(targetChain)
@ -409,7 +409,7 @@ export async function transferFromSolana(
fromAddress,
mintAddress,
nonce,
amount,
amount.valueOf(),
relayerFee,
targetAddress,
coalesceChainId(targetChain),
@ -423,7 +423,7 @@ export async function transferFromSolana(
fromAddress,
mintAddress,
nonce,
amount,
amount.valueOf(),
relayerFee,
targetAddress,
coalesceChainId(targetChain)
@ -439,7 +439,7 @@ export async function transferFromSolana(
originChainId as number, // checked by isSolanaNative
originAddress as Uint8Array, // checked by throw
nonce,
amount,
amount.valueOf(),
relayerFee,
targetAddress,
coalesceChainId(targetChain),
@ -455,7 +455,7 @@ export async function transferFromSolana(
originChainId as number, // checked by isSolanaNative
originAddress as Uint8Array, // checked by throw
nonce,
amount,
amount.valueOf(),
relayerFee,
targetAddress,
coalesceChainId(targetChain)