Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
jolestar committed Sep 30, 2024
1 parent fdc6bd0 commit 71b09c9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/rooch-oracle/src/datasource/binance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ fn parse_data(response: Value) -> Result<OracleDecimalData> {
.parse::<f64>()?
* 10f64.powi(8);
let e = response["E"]
.as_str()
.ok_or_else(|| anyhow!("E field not found in response: {}", response))?
.parse::<u64>()?;
.as_u64()
.ok_or_else(|| anyhow!("E field not found in response: {}", response))?;
Ok(OracleDecimalData {
value: U256::from(c as u64),
decimal: 8,
Expand Down

0 comments on commit 71b09c9

Please sign in to comment.