Skip to content

Commit

Permalink
remove outTxBytesMin for cointype cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
kingpinXD committed Oct 16, 2023
1 parent 32560c1 commit 2a43253
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions zetaclient/btc_signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ func (signer *BTCSigner) SignWithdrawTx(to *btcutil.AddressWitnessPubKeyHash, am
btcClient *BitcoinChainClient, height uint64, nonce uint64, chain *common.Chain, cointype common.CoinType) (*wire.MsgTx, error) {

Check warning on line 70 in zetaclient/btc_signer.go

View workflow job for this annotation

GitHub Actions / lint

unused-parameter: parameter 'cointype' seems to be unused, consider removing or renaming it as _ (revive)

estimateFee := float64(gasPrice.Uint64()) * outTxBytesMax / 1e8
if cointype == common.CoinType_Cmd {
estimateFee = float64(gasPrice.Uint64()) * outTxBytesMin / 1e8
}

nonceMark := common.NonceMarkAmount(nonce)

Expand Down

0 comments on commit 2a43253

Please sign in to comment.