Add unsafe comment
@@ -99,6 +99,7 @@ impl Client {
// Note: This unsafe code is actually safe, because the BECH32_HRP will be only initialized when we
// create the client object.
let bech32_hrp = crate::block_on(async { client.get_bech32_hrp().await.unwrap() });
+ // Note that mutable static is unsafe and requires unsafe function or block
unsafe {
BECH32_HRP = Box::leak(bech32_hrp.into_boxed_str());
}
