Skip to content

Commit

Permalink
fix logic in transaction builder
Browse files Browse the repository at this point in the history
  • Loading branch information
QuestofIranon committed Feb 20, 2020
1 parent 8721f27 commit 431019a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transaction_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func newTransactionBuilder() TransactionBuilder {
// Build validates and finalizes the transaction's state and prepares it for execution, returning a Transaction.
// The inner state becomes immutable, however it can still be signed after building.
func (builder TransactionBuilder) Build(client *Client) (Transaction, error) {
if client != nil && !builder.noTXFee {
if client != nil && !builder.noTXFee && builder.pb.TransactionFee == 0 {
builder.SetMaxTransactionFee(client.maxTransactionFee)
}

Expand Down

0 comments on commit 431019a

Please sign in to comment.