fix(dubp): getBip32DewifAccountsPublicKeys must return a List<String>
This commit is contained in:
parent
135b2627da
commit
d1ed079904
|
@ -163,14 +163,14 @@ class DubpRust {
|
||||||
//get_bip32_dewif_accounts_pubkeys
|
//get_bip32_dewif_accounts_pubkeys
|
||||||
|
|
||||||
/// Get BIP32 accounts public keys (in base 58) of `dewif` master keypair.
|
/// Get BIP32 accounts public keys (in base 58) of `dewif` master keypair.
|
||||||
static Future<String> getBip32DewifAccountsPublicKeys(
|
static Future<List<String>> getBip32DewifAccountsPublicKeys(
|
||||||
{String currency = "g1",
|
{String currency = "g1",
|
||||||
String dewif,
|
String dewif,
|
||||||
String secretCode,
|
String secretCode,
|
||||||
List<int> accountsIndex}) async {
|
List<int> accountsIndex}) async {
|
||||||
final completer = Completer<String>();
|
final completer = Completer<List<String>>();
|
||||||
final sendPort =
|
final sendPort = singleCompletePort<List<String>, List>(completer,
|
||||||
singleCompletePort<String, String>(completer, callback: _handleErr);
|
callback: _handleErrList);
|
||||||
native.get_bip32_dewif_accounts_pubkeys(
|
native.get_bip32_dewif_accounts_pubkeys(
|
||||||
sendPort.nativePort,
|
sendPort.nativePort,
|
||||||
Utf8.toUtf8(currency),
|
Utf8.toUtf8(currency),
|
||||||
|
|
Loading…
Reference in New Issue