toncenter/tonweb

Bad typing for jetton transfer body

Opened this issue · 1 comments

createTransferBody(params: TransferBodyParams): Promise<Cell>;

export interface TransferBodyParams {
    queryId?: number;
    tokenAmount: BN;
    toAddress: Address;
    responseAddress: Address;
    forwardAmount: BN;
    forwardPayload: Uint8Array;
}

for jettons there are no such thing as tokenAmount, but is necessary to set jettonAmount which is not covered by types

any update?