Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
malik672 committed Feb 19, 2024
1 parent 3318164 commit efb234f
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/behaviors/deployer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl Behavior<()> for Deployer {
.send()
.await?;

let factory = UniswapV3Factory::deploy(client.clone(), ())?.send().await?;
let factory = UniswapV3Factory::deploy(client, ())?.send().await?;

let pool = factory
.create_pool(token_0.address(), token_1.address(), 100)
Expand All @@ -69,16 +69,7 @@ impl Behavior<()> for Deployer {
pool,
);

match serde_json::to_string(&deployment_data) {
Ok(json_string) => {
messager
.send(To::All, json_string)
.await?;
}
Err(_) => {
return Err(anyhow::anyhow!("Failed to serialize deployment data"));
}
}
let _ = messager.send(To::All, serde_json::to_string(&deployment_data)?).await;

Ok(None)
}
Expand Down

0 comments on commit efb234f

Please sign in to comment.