Skip to content

Commit eb6bd7a

Browse files
committed
sgx
1 parent cad37c4 commit eb6bd7a

File tree

1 file changed

+4
-2
lines changed
  • examples/runtime-sdk/rofl-oracle-sgx/src

1 file changed

+4
-2
lines changed

examples/runtime-sdk/rofl-oracle-sgx/src/main.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,14 @@ impl OracleApp {
3939
let price = rsp
4040
.pointer("/price")
4141
.ok_or(anyhow::anyhow!("price not available"))?
42-
.as_str().unwrap()
42+
.as_str()
43+
.unwrap()
4344
.parse::<f64>()?;
4445
let price = (price * 1_000_000.0) as u128;
4546

4647
Ok(price)
47-
}).await??;
48+
})
49+
.await??;
4850

4951
// Prepare the oracle contract call.
5052
let mut tx = self.new_transaction(

0 commit comments

Comments
 (0)