Skip to content

Commit

Permalink
Merge pull request #101 from OffchainLabs/fix-place-bid-from-addr
Browse files Browse the repository at this point in the history
Set from address on placeBid call
  • Loading branch information
Tristan-Wilson authored Oct 1, 2024
2 parents a8f8aad + aade388 commit d0663e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ 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)
Expand All @@ -183,7 +184,7 @@ 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 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 d0663e2

Please sign in to comment.