Skip to content

Commit

Permalink
fix: jetton notification value reset to 1 nanoton; jetton multisend b…
Browse files Browse the repository at this point in the history
…alance check fix
  • Loading branch information
siandreev committed Apr 30, 2024
1 parent 3a68228 commit fea4d4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/service/transfer/jettonService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
} from './common';

export const jettonTransferAmount = toNano(0.1);
export const jettonTransferForwardAmount = BigInt(100000);
export const jettonTransferForwardAmount = BigInt(1);

export const jettonTransferBody = (params: {
queryId: bigint;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/service/transfer/multiSendService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,14 @@ export const sendJettonMultiTransfer = async (
const keyPair = await mnemonicToPrivateKey(mnemonic);

const [wallet, seqno] = await getWalletBalance(api, walletState);
checkWalletBalanceOrDie(feeEstimate, wallet);

checkMaxAllowedMessagesInMultiTransferOrDie(
transferMessages.length,
walletState.active.version
);

const attachValue = feeEstimate.div(transferMessages.length).plus(unShiftedDecimals(0.05));
checkWalletBalanceOrDie(attachValue, wallet);

const estimationCell = createJettonMultiTransfer(
seqno,
Expand Down

0 comments on commit fea4d4d

Please sign in to comment.