Skip to content

Commit

Permalink
refund from rfq indexer
Browse files Browse the repository at this point in the history
  • Loading branch information
golangisfun123 committed Oct 17, 2024
1 parent fce526b commit 146d28d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/opbot/botmd/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ func (b *Bot) rfqRefund() *slacker.CommandDefinition {
ctx.Context(),
big.NewInt(int64(rawRequest.Bridge.OriginChainID)),
func(transactor *bind.TransactOpts) (tx *types.Transaction, err error) {
tx, err = fastBridgeContract.Refund(transactor, common.Hex2Bytes(rawRequest.QuoteRequestRaw))
tx, err = fastBridgeContract.Refund(transactor, common.Hex2Bytes(rawRequest.BridgeRequest.Request))
if err != nil {
return nil, fmt.Errorf("error submitting refund: %w", err)
}
Expand Down
1 change: 1 addition & 0 deletions contrib/opbot/internal/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type BridgeRequest struct {
BlockNumber string `json:"blockNumber"`
BlockTimestamp int64 `json:"blockTimestamp"`
TransactionHash string `json:"transactionHash"`
Request string `json:"request"`
}

// BridgeRelay contains the bridge relay information.
Expand Down

0 comments on commit 146d28d

Please sign in to comment.