diff --git a/CHANGELOG.md b/CHANGELOG.md index 0bd6cac..73fdca2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [0.0.1-alpha.75](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.74...v0.0.1-alpha.75) (2024-09-24) + + +### Features + +* regen store createion height if its missing ([989e6c8](https://github.com/DIG-Network/dig-chia-sdk/commit/989e6c8701bfe137b610176ad40c0d7c7ff89322)) + ### [0.0.1-alpha.74](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.73...v0.0.1-alpha.74) (2024-09-24) diff --git a/package-lock.json b/package-lock.json index e0c96b3..e3cfd60 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.74", + "version": "0.0.1-alpha.75", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.74", + "version": "0.0.1-alpha.75", "license": "ISC", "dependencies": { "@dignetwork/datalayer-driver": "^0.1.25", diff --git a/package.json b/package.json index f7981d8..162cfb1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.74", + "version": "0.0.1-alpha.75", "description": "", "type": "commonjs", "main": "./dist/index.js", diff --git a/src/blockchain/DataStore.ts b/src/blockchain/DataStore.ts index bfc2059..3cf8932 100644 --- a/src/blockchain/DataStore.ts +++ b/src/blockchain/DataStore.ts @@ -414,12 +414,13 @@ export class DataStore { } } - public async cacheStoreCreationHeight( - storeId: string - ): Promise<{ createdAtHeight: number; createdAtHash: Buffer }> { + public async cacheStoreCreationHeight(): Promise<{ + createdAtHeight: number; + createdAtHash: Buffer; + }> { const peer = await FullNodePeer.connect(); const createdAtHeight = await peer.getStoreCreationHeight( - Buffer.from(storeId, "hex"), + Buffer.from(this.storeId, "hex"), null, Buffer.from(MAIN_NET_GENISES_CHALLENGE, "hex") );