From 9c727d1437ccf6626fe259f339e54098e1066f00 Mon Sep 17 00:00:00 2001 From: erhant Date: Mon, 26 Feb 2024 18:02:12 +0300 Subject: [PATCH 1/2] fix typo --- src/contracts/build/hollowdb-set.contract.js | 2 +- src/contracts/hollowdb-set.contract.ts | 4 ++-- src/hollowdb-set.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/contracts/build/hollowdb-set.contract.js b/src/contracts/build/hollowdb-set.contract.js index 54e17d7..7c293bb 100644 --- a/src/contracts/build/hollowdb-set.contract.js +++ b/src/contracts/build/hollowdb-set.contract.js @@ -209,7 +209,7 @@ state.evolve = srcTxId; return { state }; } - case "seState": { + case "setState": { const newState = await apply(caller, input.value, state, onlyOwner); state = newState; return { state }; diff --git a/src/contracts/hollowdb-set.contract.ts b/src/contracts/hollowdb-set.contract.ts index a985716..69d4cff 100644 --- a/src/contracts/hollowdb-set.contract.ts +++ b/src/contracts/hollowdb-set.contract.ts @@ -23,7 +23,7 @@ export type SetManyInput = { }; export type SetStateInput = { - function: 'seState'; + function: 'setState'; value: ContractState; }; @@ -166,7 +166,7 @@ export const handle: ContractHandle | SetManyInput< return {state}; } - case 'seState': { + case 'setState': { const newState = await apply(caller, input.value, state, onlyOwner); state = newState; return {state}; diff --git a/src/hollowdb-set.ts b/src/hollowdb-set.ts index 4eee917..03960ae 100644 --- a/src/hollowdb-set.ts +++ b/src/hollowdb-set.ts @@ -53,7 +53,7 @@ export class SetSDK extends BaseSDK>): Promise { await this.base.dryWriteInteraction({ - function: 'seState', + function: 'setState', value: state, }); } From 833b16f4070a764da741da1d004875549839db7e Mon Sep 17 00:00:00 2001 From: erhant Date: Mon, 26 Feb 2024 18:02:58 +0300 Subject: [PATCH 2/2] bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 65cb447..8ff7fad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hollowdb", - "version": "1.4.2", + "version": "1.4.3", "description": "A decentralized privacy-preserving key-value database", "license": "MIT", "homepage": "https://github.com/firstbatchxyz/hollowdb#readme",