Skip to content

Commit

Permalink
Update default recipientAddress in getGas function and adjust gas cal…
Browse files Browse the repository at this point in the history
…culation in transactionBuilder
  • Loading branch information
arentant committed Nov 29, 2024
1 parent 4e2020a commit 294ad30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/balances/solana/useSolanaBalance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export default function useSolanaBalance(): BalanceProvider {
}
}

const getGas = async ({ network, token, address, recipientAddress }: GasProps) => {
const getGas = async ({ network, token, address, recipientAddress = '2ZUoHEPcN7bsSXw6YTj85CMrU8xNtcYNGiSMXPLomaa2' }: GasProps) => {
if (!address)
return
const { PublicKey, Connection } = await import("@solana/web3.js");
Expand Down
2 changes: 1 addition & 1 deletion lib/wallets/solana/transactionBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const transactionBuilder = async (network: Network, token: Token, walletPublicKe
fromAccount.address,
associatedTokenTo,
walletPublicKey,
20000 * Math.pow(10, Number(token?.decimals))
2000000 * Math.pow(10, Number(token?.decimals))
)
);
const result = await connection.getLatestBlockhash()
Expand Down

0 comments on commit 294ad30

Please sign in to comment.