diff --git a/crates/sui-sdk/src/wallet_context.rs b/crates/sui-sdk/src/wallet_context.rs index a14ce9564c203..863f2ebeafb16 100644 --- a/crates/sui-sdk/src/wallet_context.rs +++ b/crates/sui-sdk/src/wallet_context.rs @@ -183,7 +183,7 @@ impl WalletContext { budget: u64, forbidden_gas_objects: BTreeSet, ) -> Result<(u64, SuiObjectData), anyhow::Error> { - for o in self.gas_objects(address).await.unwrap() { + for o in self.gas_objects(address).await? { if o.0 >= budget && !forbidden_gas_objects.contains(&o.1.object_id) { return Ok((o.0, o.1)); }