Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
trajan0x committed Jul 5, 2024
1 parent 7e5114b commit 27b8159
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions contrib/opbot/botmd/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,12 @@ func (b *Bot) rfqRefund() *slacker.CommandDefinition {
}
return

Check warning on line 293 in contrib/opbot/botmd/commands.go

View check run for this annotation

Codecov / codecov/patch

contrib/opbot/botmd/commands.go#L287-L293

Added lines #L287 - L293 were not covered by tests
}
//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

Check warning on line 300 in contrib/opbot/botmd/commands.go

View check run for this annotation

Codecov / codecov/patch

contrib/opbot/botmd/commands.go#L295-L300

Added lines #L295 - L300 were not covered by tests
})
if err != nil {
log.Printf("error submitting refund: %v\n", err)
Expand Down

0 comments on commit 27b8159

Please sign in to comment.