Skip to content

Commit

Permalink
feat(Client): more api features
Browse files Browse the repository at this point in the history
Signed-off-by: Ricky Saechao <[email protected]>
  • Loading branch information
RickyLB committed Dec 18, 2023
1 parent 53edb4f commit 6c71db7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Hedera/Client/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ public final class Client: Sendable {
/// # Panics
/// - if amount is negative
public func setDefaultMaxTransactionFee(_ amount: Hbar) throws {
assert(amount.toTinybars() < 0, "Default max transaction fee cannot be set to a negative value.")
assert(amount.toTinybars() >= 0, "Default max transaction fee cannot be set to a negative value.")

self.maxTransactionFeeInner.store(amount.toTinybars(), ordering: .relaxed)
}
Expand Down

0 comments on commit 6c71db7

Please sign in to comment.