Skip to content

Commit b4cd884

Browse files
committed
Add jetton transfer amount param
1 parent cf9e99e commit b4cd884

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/TonSwift/Jettons/JettonTransferMessage.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ public struct JettonTransferMessage {
1414
bounce: Bool,
1515
to: Address,
1616
from: Address,
17+
transferAmount: BigUInt = BigUInt(stringLiteral: "100000000"),
1718
comment: String? = nil,
1819
customPayload: Cell? = nil,
1920
stateInit: StateInit? = nil
2021
) throws -> MessageRelaxed {
2122
let forwardAmount = BigUInt(stringLiteral: "1")
22-
let jettonTransferAmount = BigUInt(stringLiteral: "100000000")
2323
let queryId = UInt64(Date().timeIntervalSince1970)
2424

2525
var commentCell: Cell?
@@ -37,7 +37,7 @@ public struct JettonTransferMessage {
3737

3838
return MessageRelaxed.internal(
3939
to: jettonAddress,
40-
value: jettonTransferAmount,
40+
value: transferAmount,
4141
bounce: bounce,
4242
stateInit: stateInit,
4343
body: try Builder().store(jettonTransferData).endCell()

0 commit comments

Comments
 (0)