From 56bcab91c5bf7634dbe8a140b75b7519141f60b3 Mon Sep 17 00:00:00 2001 From: golangisfun123 Date: Mon, 21 Oct 2024 11:19:43 -0500 Subject: [PATCH] add new fiedl --- contrib/opbot/botmd/commands.go | 2 +- contrib/opbot/internal/model.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/opbot/botmd/commands.go b/contrib/opbot/botmd/commands.go index d216c41782..3fe5e8d57c 100644 --- a/contrib/opbot/botmd/commands.go +++ b/contrib/opbot/botmd/commands.go @@ -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.BridgeRequest.Request)) + tx, err = fastBridgeContract.Refund(transactor, common.Hex2Bytes(rawRequest.Bridge.Request)) if err != nil { return nil, fmt.Errorf("error submitting refund: %w", err) } diff --git a/contrib/opbot/internal/model.go b/contrib/opbot/internal/model.go index f7afcbad37..7b44f1ab91 100644 --- a/contrib/opbot/internal/model.go +++ b/contrib/opbot/internal/model.go @@ -22,6 +22,7 @@ type Bridge struct { DestAmountFormatted string `json:"destAmountFormatted"` Sender string `json:"sender"` SendChainGas int `json:"sendChainGas"` + Request string `json:"request"` } // BridgeRequest contains the bridge request information. @@ -29,7 +30,6 @@ 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.