fix: need to store walletAddress

This commit is contained in:
Derrick Hammer 2023-10-23 19:42:03 -04:00
parent ec1479b3c8
commit 71ed20ff13
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 12 additions and 0 deletions

View File

@ -11,3 +11,15 @@ index aae75cf..96939be 100644
this.badgeGeneratorClient = new badges_pb_service_1.BadgeGeneratorClient(this.badgeServerAddress, this.getTransportWrapped());
}
isActive() {
diff --git a/node_modules/@lavanet/lava-sdk/bin/src/sdk/sdk.js b/node_modules/@lavanet/lava-sdk/bin/src/sdk/sdk.js
index 89267e8..90f6a88 100644
--- a/node_modules/@lavanet/lava-sdk/bin/src/sdk/sdk.js
+++ b/node_modules/@lavanet/lava-sdk/bin/src/sdk/sdk.js
@@ -89,6 +89,7 @@ class LavaSDK {
if (!this.badgeManager.isActive() || this.privKey != "") {
const wallet = yield (0, wallet_1.createWallet)(this.privKey);
this.account = yield wallet.getConsumerAccount();
+ this.walletAddress = this.account.address;
}
else {
const { wallet, privKey } = yield (0, wallet_1.createDynamicWallet)();