Skip to content

Commit

Permalink
Fix typo (#76)
Browse files Browse the repository at this point in the history
* fix typo

* bump version
  • Loading branch information
erhant authored Feb 26, 2024
1 parent 1a7e6c6 commit 4a30062
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/build/hollowdb-set.contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
4 changes: 2 additions & 2 deletions src/contracts/hollowdb-set.contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export type SetManyInput<V> = {
};

export type SetStateInput = {
function: 'seState';
function: 'setState';
value: ContractState<Mode>;
};

Expand Down Expand Up @@ -166,7 +166,7 @@ export const handle: ContractHandle<Value, Mode, SetInput<Value> | SetManyInput<
return {state};
}

case 'seState': {
case 'setState': {
const newState = await apply(caller, input.value, state, onlyOwner);
state = newState;
return {state};
Expand Down
2 changes: 1 addition & 1 deletion src/hollowdb-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class SetSDK<V = unknown> extends BaseSDK<V, {proofs: ['auth']; whitelist
*/
async setState(state: Awaited<ReturnType<this['getState']>>): Promise<void> {
await this.base.dryWriteInteraction<SetStateInput>({
function: 'seState',
function: 'setState',
value: state,
});
}
Expand Down

0 comments on commit 4a30062

Please sign in to comment.