Skip to content

Commit

Permalink
JettonTransferData
Browse files Browse the repository at this point in the history
- make init public
  • Loading branch information
grishamsc committed Oct 30, 2024
1 parent 1a7c917 commit ea25e95
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Source/TonSwift/Jettons/JettonTransferData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,20 @@ public struct JettonTransferData: CellCodable {
customPayload: customPayload
)
}

public init(queryId: UInt64,
amount: BigUInt,
toAddress: Address,
responseAddress: Address,
forwardAmount: BigUInt,
forwardPayload: Cell?,
customPayload: Cell? = nil) {
self.queryId = queryId
self.amount = amount
self.toAddress = toAddress
self.responseAddress = responseAddress
self.forwardAmount = forwardAmount
self.forwardPayload = forwardPayload
self.customPayload = customPayload
}
}

0 comments on commit ea25e95

Please sign in to comment.