toncenter / tonweb

JavaScript SDK for TON (The Open Network)
MIT License
432 stars 107 forks source link

Bad typing for jetton transfer body #100

Open nickerlan opened 1 year ago

nickerlan commented 1 year ago

https://github.com/toncenter/tonweb/blob/f3304156fb3000e96a7ed10123ae31185792d05a/dist/types/contract/token/ft/jetton-wallet.d.ts#L40

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

flangapp commented 9 months ago

any update?