Skip to content

Commit 4a30062

Browse files
authored
Fix typo (#76)
* fix typo * bump version
1 parent 1a7e6c6 commit 4a30062

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hollowdb",
3-
"version": "1.4.2",
3+
"version": "1.4.3",
44
"description": "A decentralized privacy-preserving key-value database",
55
"license": "MIT",
66
"homepage": "https://github.com/firstbatchxyz/hollowdb#readme",

src/contracts/build/hollowdb-set.contract.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209
state.evolve = srcTxId;
210210
return { state };
211211
}
212-
case "seState": {
212+
case "setState": {
213213
const newState = await apply(caller, input.value, state, onlyOwner);
214214
state = newState;
215215
return { state };

src/contracts/hollowdb-set.contract.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export type SetManyInput<V> = {
2323
};
2424

2525
export type SetStateInput = {
26-
function: 'seState';
26+
function: 'setState';
2727
value: ContractState<Mode>;
2828
};
2929

@@ -166,7 +166,7 @@ export const handle: ContractHandle<Value, Mode, SetInput<Value> | SetManyInput<
166166
return {state};
167167
}
168168

169-
case 'seState': {
169+
case 'setState': {
170170
const newState = await apply(caller, input.value, state, onlyOwner);
171171
state = newState;
172172
return {state};

src/hollowdb-set.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class SetSDK<V = unknown> extends BaseSDK<V, {proofs: ['auth']; whitelist
5353
*/
5454
async setState(state: Awaited<ReturnType<this['getState']>>): Promise<void> {
5555
await this.base.dryWriteInteraction<SetStateInput>({
56-
function: 'seState',
56+
function: 'setState',
5757
value: state,
5858
});
5959
}

0 commit comments

Comments
 (0)