Skip to content

Commit d046e12

Browse files
committed
f Fix rebase
1 parent 6c93102 commit d046e12

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ impl Builder {
259259
pub fn set_entropy_bip39_mnemonic(
260260
&mut self, mnemonic: bip39::Mnemonic, passphrase: Option<String>,
261261
) -> &mut Self {
262-
self.entropy_source = Some(WalletEntropySource::Bip39Mnemonic { mnemonic, passphrase });
262+
self.entropy_source_config =
263+
Some(EntropySourceConfig::Bip39Mnemonic { mnemonic, passphrase });
263264
self
264265
}
265266

@@ -326,7 +327,7 @@ impl Builder {
326327
EntropySourceConfig::SeedFile(seed_path) => {
327328
io::utils::read_or_generate_seed_file(seed_path)
328329
}
329-
WalletEntropySource::Bip39Mnemonic { mnemonic, passphrase } => match passphrase {
330+
EntropySourceConfig::Bip39Mnemonic { mnemonic, passphrase } => match passphrase {
330331
Some(passphrase) => mnemonic.to_seed(passphrase),
331332
None => mnemonic.to_seed(""),
332333
},

0 commit comments

Comments
 (0)