Fix offline singing bug in client builder
@@ -145,6 +145,8 @@ impl Client {
}
let client = crate::block_on(async { client.finish().await.unwrap() });
+ // If not in the offline mode
+ if offline != Some(true) {
// Update the BECH32_HRP
// Note: This unsafe code is actually safe, because the BECH32_HRP will be only initialized when we
// create the client object.
@@ -153,6 +155,7 @@ impl Client {
unsafe {
BECH32_HRP = Box::leak(bech32_hrp.into_boxed_str());
}
+ }
Client { client }
}
}
