Skip to content

Commit

Permalink
refactor relayer interface - 2
Browse files Browse the repository at this point in the history
  • Loading branch information
marino39 committed Feb 29, 2024
1 parent 5488d5d commit 1d787ba
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -586,12 +586,7 @@ func (w *Wallet[C]) SendTransactions(ctx context.Context, signedTxns *SignedTran
return "", nil, nil, ErrRelayerNotSet
}

var quote *RelayerFeeQuote
if len(feeQuote) > 0 {
quote = feeQuote[0]
}

return w.relayer.Relay(ctx, signedTxns, quote)
return w.relayer.Relay(ctx, signedTxns, feeQuote...)
}

func (w *Wallet[C]) FeeOptions(ctx context.Context, txs Transactions) ([]*RelayerFeeOption, *RelayerFeeQuote, error) {
Expand Down

0 comments on commit 1d787ba

Please sign in to comment.