Skip to content

Commit

Permalink
Add missing multiAccountGenerateAndDeriveAddresses on Desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Pombeiro committed Oct 1, 2019
1 parent b3e298b commit 2fee8b9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/react-native-status/desktop/rctstatus.cpp
Expand Up @@ -288,6 +288,15 @@ void RCTStatus::openAccounts(double callbackId) {

}

void RCTStatus::multiAccountGenerateAndDeriveAddresses(QString json, double callbackId) {
Q_D(RCTStatus);
QtConcurrent::run([&](QString json, double callbackId) {
const char* result = MultiAccountGenerateAndDeriveAddresses(json.toUtf8().data());
logStatusGoResult("::multiAccountGenerateAndDeriveAddresses", result);
d->bridge->invokePromiseCallback(callbackId, QVariantList{result});
}, json, callbackId);
}

void RCTStatus::multiAccountStoreAccount(QString json, double callbackId) {
Q_D(RCTStatus);
QtConcurrent::run([&](QString json, double callbackId) {
Expand Down
1 change: 1 addition & 0 deletions modules/react-native-status/desktop/rctstatus.h
Expand Up @@ -44,6 +44,7 @@ class RCTStatus : public QObject, public ModuleInterface {
Q_INVOKABLE void saveAccountAndLogin(QString accountData, QString password, QString config, QString subAccountsData);
Q_INVOKABLE void logout();
Q_INVOKABLE void openAccounts(double callbackId);
Q_INVOKABLE void multiAccountGenerateAndDeriveAddresses(QString json, double callbackId);
Q_INVOKABLE void multiAccountStoreAccount(QString json, double callbackId);
Q_INVOKABLE void multiAccountLoadAccount(QString json, double callbackId);
Q_INVOKABLE void multiAccountReset(double callbackId);
Expand Down

0 comments on commit 2fee8b9

Please sign in to comment.