Skip to content

Commit

Permalink
Merge pull request #36 from LtbLightning/upgrade-v0.2.1
Browse files Browse the repository at this point in the history
Upgrade v0.2.1
  • Loading branch information
BitcoinZavior authored Feb 23, 2024
2 parents 88779f4 + 0104657 commit 4afd8ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ class _MyAppState extends State<MyApp> {
ldk.SocketAddress.hostname(addr: "0.0.0.0", port: 3003));
ldk.Builder aliceBuilder = ldk.Builder.fromConfig(config: aliceConfig);
aliceNode = await aliceBuilder
.setEntropyBip39Mnemonic(
mnemonic: ldk.Mnemonic(
"cart super leaf clinic pistol plug replace close super tooth wealth usage"))
.setEntropyBip39Mnemonic(mnemonic: await ldk.Mnemonic.generate())
.setEsploraServer(esploraUrl)
.build();
await startNode(aliceNode);
Expand Down
4 changes: 2 additions & 2 deletions lib/src/root.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import 'package:path_provider/path_provider.dart';
class Mnemonic extends bridge.Mnemonic {
Mnemonic(String seedPhrase)
: super(bridge: loaderApi, seedPhrase: seedPhrase);
static Future<bridge.Mnemonic> generate() async {
static Future<Mnemonic> generate() async {
final res = await bridge.Mnemonic.generate(bridge: loaderApi);
return res;
return Mnemonic(res.seedPhrase);
}
}

Expand Down

0 comments on commit 4afd8ac

Please sign in to comment.