Compare commits

...

4 Commits

5 changed files with 25 additions and 6 deletions

View File

@ -1,3 +1,10 @@
# [0.1.0-develop.10](https://git.lumeweb.com/LumeWeb/kernel-lavanet/compare/v0.1.0-develop.9...v0.1.0-develop.10) (2023-10-23)
### Bug Fixes
* need to store walletAddress ([71ed20f](https://git.lumeweb.com/LumeWeb/kernel-lavanet/commit/71ed20ff13dbf0cd396dfd6c3a31163a467b4fc4))
# [0.1.0-develop.9](https://git.lumeweb.com/LumeWeb/kernel-lavanet/compare/v0.1.0-develop.8...v0.1.0-develop.9) (2023-10-23)
# [0.1.0-develop.8](https://git.lumeweb.com/LumeWeb/kernel-lavanet/compare/v0.1.0-develop.7...v0.1.0-develop.8) (2023-09-04)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@lumeweb/kernel-lavanet",
"version": "0.1.0-develop.9",
"version": "0.1.0-develop.10",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@lumeweb/kernel-lavanet",
"version": "0.1.0-develop.9",
"version": "0.1.0-develop.10",
"hasInstallScript": true,
"dependencies": {
"@lavanet/lava-sdk": "^0.25.6",

View File

@ -1,7 +1,7 @@
{
"name": "@lumeweb/kernel-lavanet",
"type": "module",
"version": "0.1.0-develop.9",
"version": "0.1.0-develop.10",
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",

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)();

View File

@ -33,9 +33,9 @@ class HyperTransport implements grpc.Transport {
}
if (ret.data) {
this.options.onHeaders(new grpc.Metadata(), 200);
ret.data = new Uint8Array(Object.values(ret.data));
this.options.onChunk(ret.data);
ret.data?.forEach((item: number[]) => {
this.options.onChunk(Uint8Array.from(item));
});
}
this.options.onEnd();