We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53edb4f commit 6c71db7Copy full SHA for 6c71db7
Sources/Hedera/Client/Client.swift
@@ -340,7 +340,7 @@ public final class Client: Sendable {
340
/// # Panics
341
/// - if amount is negative
342
public func setDefaultMaxTransactionFee(_ amount: Hbar) throws {
343
- 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.")
344
345
self.maxTransactionFeeInner.store(amount.toTinybars(), ordering: .relaxed)
346
}
0 commit comments