Skip to content

Commit

Permalink
Merge branch 'master' into feat/prevent-burn
Browse files Browse the repository at this point in the history
  • Loading branch information
MujkicA authored Jan 12, 2025
2 parents 22b4ca4 + 3b03063 commit f6fd1fc
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 f6fd1fc

Please sign in to comment.