Skip to content

Commit

Permalink
Add jetton transfer amount param
Browse files Browse the repository at this point in the history
  • Loading branch information
voloshinskii committed Dec 17, 2024
1 parent cf9e99e commit b4cd884
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/TonSwift/Jettons/JettonTransferMessage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ public struct JettonTransferMessage {
bounce: Bool,
to: Address,
from: Address,
transferAmount: BigUInt = BigUInt(stringLiteral: "100000000"),
comment: String? = nil,
customPayload: Cell? = nil,
stateInit: StateInit? = nil
) throws -> MessageRelaxed {
let forwardAmount = BigUInt(stringLiteral: "1")
let jettonTransferAmount = BigUInt(stringLiteral: "100000000")
let queryId = UInt64(Date().timeIntervalSince1970)

var commentCell: Cell?
Expand All @@ -37,7 +37,7 @@ public struct JettonTransferMessage {

return MessageRelaxed.internal(
to: jettonAddress,
value: jettonTransferAmount,
value: transferAmount,
bounce: bounce,
stateInit: stateInit,
body: try Builder().store(jettonTransferData).endCell()
Expand Down

0 comments on commit b4cd884

Please sign in to comment.