Skip to content

Commit

Permalink
nits from previous PR
Browse files Browse the repository at this point in the history
  • Loading branch information
segfault-magnet committed Jan 9, 2025
1 parent 1d6de6c commit cf058ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions packages/fuels-accounts/src/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,7 @@ impl Provider {
tx: T,
) -> Result<TxStatus> {
#[cfg(feature = "coin-cache")]
let base_asset_id = {
let consensus_parameters = self.consensus_parameters().await?;
*consensus_parameters.base_asset_id()
};
let base_asset_id = *self.consensus_parameters().await?.base_asset_id();

#[cfg(feature = "coin-cache")]
self.check_inputs_already_in_cache(&tx.used_coins(&base_asset_id))
Expand Down
2 changes: 1 addition & 1 deletion packages/fuels-accounts/src/provider/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ where
Client: CacheableRpcs,
{
pub async fn clear(&self) {
let _ = self.cached_consensus_params.write().await.take();
*self.cached_consensus_params.write().await = None;
}
}

Expand Down

0 comments on commit cf058ba

Please sign in to comment.