Skip to content

Commit

Permalink
Merge pull request #167 from DIG-Network/release/v0.0.1-alpha.179
Browse files Browse the repository at this point in the history
Release/v0.0.1 alpha.179
  • Loading branch information
MichaelTaylor3D authored Oct 31, 2024
2 parents 7fe3a87 + 3d577d2 commit 155f2bf
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.179](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.178...v0.0.1-alpha.179) (2024-10-31)


### Bug Fixes

* check if store exists in the Datastore.from constuctor ([822c354](https://github.com/DIG-Network/dig-chia-sdk/commit/822c354fd42deb6cdffe1e5e5f5341d9ed624a64))

### [0.0.1-alpha.178](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.177...v0.0.1-alpha.178) (2024-10-31)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dignetwork/dig-sdk",
"version": "0.0.1-alpha.178",
"version": "0.0.1-alpha.179",
"description": "",
"type": "commonjs",
"main": "./dist/index.js",
Expand Down
4 changes: 4 additions & 0 deletions src/blockchain/DataStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ export class DataStore {
}

public static from(storeId: string | Buffer, rootHash?: string): DataStore {
if (!fs.existsSync(path.join(STORE_PATH, storeId.toString("hex")))) {
throw new Error(`Store with ID ${storeId.toString("hex")} does not exist.`);
}

const existingTreeOptions: DataIntegrityTreeOptions = {
storageMode: "local",
storeDir: STORE_PATH,
Expand Down

0 comments on commit 155f2bf

Please sign in to comment.