From 27b815984eea6d9a49b423e998e413f187ca25a4 Mon Sep 17 00:00:00 2001 From: Trajan0x Date: Fri, 5 Jul 2024 18:42:43 -0400 Subject: [PATCH] cleanup --- contrib/opbot/botmd/commands.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/contrib/opbot/botmd/commands.go b/contrib/opbot/botmd/commands.go index 10dfc108d0..4963360e67 100644 --- a/contrib/opbot/botmd/commands.go +++ b/contrib/opbot/botmd/commands.go @@ -292,10 +292,12 @@ func (b *Bot) rfqRefund() *slacker.CommandDefinition { } return } - //nolint: wrapcheck. nonce, err := b.submitter.SubmitTransaction(ctx.Context(), big.NewInt(int64(rawRequest.OriginChainID)), func(transactor *bind.TransactOpts) (tx *types.Transaction, err error) { - //nolint: wrapcheck. - return fastBridgeContract.Refund(transactor, common.Hex2Bytes(rawRequest.QuoteRequestRaw)) + tx, err = fastBridgeContract.Refund(transactor, common.Hex2Bytes(rawRequest.QuoteRequestRaw)) + if err != nil { + return nil, fmt.Errorf("error submitting refund: %w", err) + } + return tx, nil }) if err != nil { log.Printf("error submitting refund: %v\n", err)