From d3be2ff8671855fa2aea625e118bf1790537e1ba Mon Sep 17 00:00:00 2001 From: Daniel Wasserman Date: Wed, 20 Nov 2024 16:01:31 -0600 Subject: [PATCH] Fix: tests --- services/rfq/api/rest/server_test.go | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/services/rfq/api/rest/server_test.go b/services/rfq/api/rest/server_test.go index e29143dfaa..a4c0fc97b8 100644 --- a/services/rfq/api/rest/server_test.go +++ b/services/rfq/api/rest/server_test.go @@ -539,15 +539,20 @@ func (c *ServerSuite) prepareAuthHeader(wallet wallet.Wallet) (string, error) { } // sendPutQuoteRequest sends a PUT request to the server with the given authorization header. +// +//nolint:gosec func (c *ServerSuite) sendPutQuoteRequest(header string) (*http.Response, error) { // Prepare the PUT request with JSON data. client := &http.Client{} putData := model.PutRelayerQuoteRequest{ - DestChainID: 42161, - DestTokenAddr: "0xDestTokenAddr", - DestAmount: "100.0", - MaxOriginAmount: "200.0", - FixedFee: "10.0", + OriginChainID: c.originChainID, + DestChainID: c.destChainID, + DestTokenAddr: "0xDestTokenAddr", + DestAmount: "100.0", + MaxOriginAmount: "200.0", + FixedFee: "10.0", + OriginFastBridgeAddress: c.cfg.FastBridgeContractsV1[uint32(c.originChainID)], + DestFastBridgeAddress: c.cfg.FastBridgeContractsV1[uint32(c.destChainID)], } jsonData, err := json.Marshal(putData) if err != nil {