-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4965 from nymtech/bugfix/invalid-gateways-response
bugfix: fix expected return type on /v1/gateways endpoint
- Loading branch information
Showing
4 changed files
with
16 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
// Copyright 2022 - Nym Technologies SA <[email protected]> | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
use nym_mixnet_contract_common::GatewayBond; | ||
use nym_task::TaskClient; | ||
use nym_validator_client::legacy::LegacyGatewayBondWithId; | ||
use nym_validator_client::models::MixNodeBondAnnotated; | ||
use nym_validator_client::nyxd::error::NyxdError; | ||
use nym_validator_client::nyxd::{Paging, TendermintRpcClient, ValidatorResponse}; | ||
|
@@ -47,9 +47,7 @@ impl ExplorerApiTasks { | |
.await | ||
} | ||
|
||
async fn retrieve_all_gateways( | ||
&self, | ||
) -> Result<Vec<LegacyGatewayBondWithId>, ValidatorClientError> { | ||
async fn retrieve_all_gateways(&self) -> Result<Vec<GatewayBond>, ValidatorClientError> { | ||
info!("About to retrieve all gateways..."); | ||
self.state | ||
.inner | ||
|