Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow to pass null payload to JettonWallet wrapper's sendTransfer and sendBurn #40

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions wrappers/JettonWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ export class JettonWallet implements Contract {
value: bigint,
jetton_amount: bigint, to: Address,
responseAddress:Address,
customPayload: Cell,
customPayload: Cell | null,
forward_ton_amount: bigint,
forwardPayload: Cell) {
forwardPayload: Cell | null) {
await provider.internal(via, {
sendMode: SendMode.PAY_GAS_SEPARATELY,
body: JettonWallet.transferMessage(jetton_amount, to, responseAddress, customPayload, forward_ton_amount, forwardPayload),
Expand All @@ -79,7 +79,7 @@ export class JettonWallet implements Contract {
async sendBurn(provider: ContractProvider, via: Sender, value: bigint,
jetton_amount: bigint,
responseAddress:Address,
customPayload: Cell) {
customPayload: Cell | null) {
await provider.internal(via, {
sendMode: SendMode.PAY_GAS_SEPARATELY,
body: JettonWallet.burnMessage(jetton_amount, responseAddress, customPayload),
Expand Down