Fix build error with Rust 1.71.0 (#684)

This commit is contained in:
Quentin Le Sceller 2023-07-25 05:14:52 -04:00 committed by GitHub
parent f0a38306e0
commit 0b491fea0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -210,7 +210,7 @@ impl GlobalWalletConfig {
/// apply defaults for each chain type
pub fn for_chain(chain_type: &global::ChainTypes) -> GlobalWalletConfig {
let mut defaults_conf = GlobalWalletConfig::default();
let mut defaults = &mut defaults_conf.members.as_mut().unwrap().wallet;
let defaults = &mut defaults_conf.members.as_mut().unwrap().wallet;
defaults.chain_type = Some(chain_type.clone());
match *chain_type {