services/rfq/relayer/chain/chain.go
Function NewChain
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func NewChain(ctx context.Context, cfg relconfig.Config, chainClient client.EVM, chainListener listener.ContractListener, ts submitter.TransactionSubmitter) (*Chain, error) {
Method Chain.SubmitRelay
has 5 return statements (exceeds 4 allowed). Open
Open
func (c Chain) SubmitRelay(ctx context.Context, request reldb.QuoteRequest) (uint64, *big.Int, error) {
gasAmount := big.NewInt(0)
var err error
// Check to see if ETH should be sent to destination
Function NewChain
has 5 return statements (exceeds 4 allowed). Open
Open
func NewChain(ctx context.Context, cfg relconfig.Config, chainClient client.EVM, chainListener listener.ContractListener, ts submitter.TransactionSubmitter) (*Chain, error) {
chainID, err := chainClient.ChainID(ctx)
if err != nil {
return nil, fmt.Errorf("could not get chain id: %w", err)
}