Skip to content

Commit

Permalink
Fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dwasse committed Nov 20, 2024
1 parent 8ece825 commit d3be2ff
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions services/rfq/api/rest/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d3be2ff

Please sign in to comment.