Skip to content

Commit

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

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

let raw_output = place_bid_call.clone().call().await;
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 {
bail!("failed to send cache bid tx: {:?}", e)
Expand Down

0 comments on commit 8d82599

Please sign in to comment.