Skip to content

Commit 7c66412

Browse files
committed
change error number
1 parent 5f90ec5 commit 7c66412

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

apps/indexer-proxy/utils/src/price_oracle.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,18 +75,18 @@ pub async fn convert_price<M: Middleware>(
7575

7676
let price_contract_address: Address = setting_contract
7777
.method::<_, Address>("getContractAddress", (SQContracts::PriceOracle,))
78-
.map_err(|_| Error::ServiceException(1028))?
78+
.map_err(|_| Error::ServiceException(1029))?
7979
.call()
8080
.await
81-
.map_err(|_| Error::ServiceException(1028))?;
81+
.map_err(|_| Error::ServiceException(1030))?;
8282
let price_contract =
8383
price_contract_with_dynamic_address(client.clone(), price_contract_address)
84-
.map_err(|_| Error::ServiceException(1028))?;
84+
.map_err(|_| Error::ServiceException(1031))?;
8585

8686
price_contract
8787
.method::<_, U256>("convertPrice", (asset_from, asset_to, amount_from))
88-
.map_err(|_| Error::ServiceException(1028))?
88+
.map_err(|_| Error::ServiceException(1032))?
8989
.call()
9090
.await
91-
.map_err(|_| Error::ServiceException(1028))
91+
.map_err(|_| Error::ServiceException(1033))
9292
}

0 commit comments

Comments
 (0)