Skip to content

Commit

Permalink
wallet: use state variable
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjan committed Jan 30, 2024
1 parent 329d228 commit 7db0d6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wallet/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ func (sw *SingleAddressWallet) Redistribute(outputs int, amount, feePerByte type
outputs -= len(txn.SiacoinOutputs)

// estimate the fees
outputFees := feePerByte.Mul64(sw.cm.TipState().TransactionWeight(txn))
outputFees := feePerByte.Mul64(state.TransactionWeight(txn))
feePerInput := feePerByte.Mul64(BytesPerInput)

// collect outputs that cover the total amount
Expand Down

0 comments on commit 7db0d6d

Please sign in to comment.