Skip to content

Commit

Permalink
Remove clone
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristan-Wilson committed Sep 30, 2024
1 parent 8d82599 commit aade388
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,10 @@ pub async fn place_bid(cfg: &CacheBidConfig) -> Result<()> {
.await?;
let chain_id = provider.get_chain_id().await?;
let wallet = cfg.auth.alloy_wallet(chain_id)?;
let from_address = wallet.default_signer().address();
let provider = ProviderBuilder::new()
.with_recommended_fillers()
.wallet(wallet.clone())
.wallet(wallet)
.on_builtin(&cfg.endpoint)
.await?;
let cache_manager_addr = get_cache_manager_address(provider.clone()).await?;
Expand All @@ -183,7 +184,6 @@ pub async fn place_bid(cfg: &CacheBidConfig) -> Result<()> {

greyln!("Checking if contract can be cached...");

let from_address = wallet.default_signer().address();
let raw_output = place_bid_call.clone().from(from_address).call().await;
if let Err(e) = raw_output {
let Error::TransportError(tperr) = e else {
Expand Down

0 comments on commit aade388

Please sign in to comment.