Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set from address on placeBid call #101

Merged
merged 2 commits into from
Oct 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading