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", 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, }); }