Skip to content

Commit a519177

Browse files
authored
Merge pull request #336 from hashgraph/sr/swift-token-wipe-transaction
feat(swift): `TokenWipeTransaction.addSerial`
2 parents 1884a55 + 2936b0e commit a519177

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sdk/swift/Sources/Hedera/Token/TokenWipeTransaction.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ public final class TokenWipeTransaction: Transaction {
7575
return self
7676
}
7777

78+
/// Add a serial number of a non-fungible token to wipe from the specified account
79+
@discardableResult
80+
public func addSerial(_ serial: UInt64) -> Self {
81+
self.serials.append(serial)
82+
83+
return self
84+
}
85+
7886
private enum CodingKeys: String, CodingKey {
7987
case tokenId
8088
case amount

0 commit comments

Comments
 (0)