Skip to content

Commit

Permalink
fix(BTC): fix NaN value in fee calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
bludnic committed Sep 4, 2024
1 parent 1cfa868 commit 80099d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/modules/btc/btc-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const customActions = (getApi) => ({
btcIndexer.getUnspents(context.state.address).then((utxo) => context.commit('utxo', utxo))

// The estimated fee rate is also needed
btcIndexer.getFeeRate().then((rate) => context.commit('feeRate', rate))
btcIndexer.getFeeRate().then((rate) => context.commit('feeRate', rate['2']))

// Last block height
context.dispatch('updateHeight')
Expand Down

1 comment on commit 80099d3

@bludnic
Copy link
Member Author

@bludnic bludnic commented on 80099d3 Sep 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.