Skip to content

Commit f411014

Browse files
committed
Revert maybe_top_up in pool create
1 parent f3f639a commit f411014

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • packages/layer-climb-core/src

packages/layer-climb-core/src/pool.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,16 @@ impl Manager for SigningClientPoolManager {
164164
type Error = anyhow::Error;
165165

166166
async fn create(&self) -> Result<SigningClient> {
167+
// it's possible that the client hasn't ever been funded
168+
// which would cause an error when trying to create it (specifically in base account)
169+
// so if we're configured to use a funder, let's get the raw address
170+
// before we create the client
167171
let signer = self.create_signer()?;
172+
let addr = self
173+
.chain_config
174+
.address_from_pub_key(&signer.public_key().await?)?;
175+
176+
self.maybe_top_up(addr).await?;
168177
let client = self.create_client(Some(signer)).await?;
169178

170179
tracing::debug!("POOL CREATED CLIENT {}", client.addr);

0 commit comments

Comments
 (0)