diff --git a/zetaclient/btc_signer.go b/zetaclient/btc_signer.go index 70fb84c94b..ffc0d56a67 100644 --- a/zetaclient/btc_signer.go +++ b/zetaclient/btc_signer.go @@ -67,7 +67,7 @@ func NewBTCSigner(cfg config.BTCConfig, tssSigner TSSSigner, logger zerolog.Logg // SignWithdrawTx receives utxos sorted by value, amount in BTC, feeRate in BTC per Kb func (signer *BTCSigner) SignWithdrawTx(to *btcutil.AddressWitnessPubKeyHash, amount float64, gasPrice *big.Int, sizeLimit uint64, - btcClient *BitcoinChainClient, height uint64, nonce uint64, chain *common.Chain, cointype common.CoinType) (*wire.MsgTx, error) { + btcClient *BitcoinChainClient, height uint64, nonce uint64, chain *common.Chain) (*wire.MsgTx, error) { estimateFee := float64(gasPrice.Uint64()) * outTxBytesMax / 1e8 @@ -295,7 +295,7 @@ func (signer *BTCSigner) TryProcessOutTx(send *types.CrossChainTx, outTxMan *Out logger.Info().Msgf("SignWithdrawTx: to %s, value %d sats", addr.EncodeAddress(), params.Amount.Uint64()) logger.Info().Msgf("using utxos: %v", btcClient.utxos) tx, err := signer.SignWithdrawTx(to, float64(params.Amount.Uint64())/1e8, gasprice, sizelimit, btcClient, height, - outboundTxTssNonce, &btcClient.chain, params.CoinType) + outboundTxTssNonce, &btcClient.chain) if err != nil { logger.Warn().Err(err).Msgf("SignOutboundTx error: nonce %d chain %d", outboundTxTssNonce, params.ReceiverChainId) return