Skip to content

Commit

Permalink
near getBlockChainData passphrase param fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturLevchuk committed Sep 25, 2024
1 parent 6f9b14b commit 70c59bd
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ class NearBlockChainService
String? passphrase,
DerivationPathData? derivationPath,
}) async {
passphrase ??= "";
final rawFunction = derivationPath == null
? "window.NearBlockchain.getBlockChainDataFromMnemonic('$mnemonic','$passphrase')"
: """window.NearBlockchain.getBlockChainDataFromMnemonic('$mnemonic','$passphrase', "${(derivationPath as DerivationPath).accountNumber}","${derivationPath.change}","${derivationPath.address}")""";
Expand Down

0 comments on commit 70c59bd

Please sign in to comment.