There was an error while loading. Please reload this page.
1 parent f3f639a commit f411014Copy full SHA for f411014
1 file changed
packages/layer-climb-core/src/pool.rs
@@ -164,7 +164,16 @@ impl Manager for SigningClientPoolManager {
164
type Error = anyhow::Error;
165
166
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
171
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?;
177
let client = self.create_client(Some(signer)).await?;
178
179
tracing::debug!("POOL CREATED CLIENT {}", client.addr);
0 commit comments