diff --git a/package.json b/package.json index 6c1ee894..23c00c6b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "warp-contracts", - "version": "1.4.20", + "version": "1.4.21", "description": "An implementation of the SmartWeave smart contract protocol.", "types": "./lib/types/index.d.ts", "main": "./lib/cjs/index.js", diff --git a/src/__tests__/integration/basic/pst-kv.test.ts b/src/__tests__/integration/basic/pst-kv.test.ts index a9100ea1..e11d386e 100644 --- a/src/__tests__/integration/basic/pst-kv.test.ts +++ b/src/__tests__/integration/basic/pst-kv.test.ts @@ -147,14 +147,14 @@ describe('Testing the Profit Sharing Token', () => { it('should properly store false and falsy values in kv', async () => { const falsyEntries = { - 'false': false, - 'emptyString': '', - 'zero': 0, - 'emptyArray': [], - 'nan': NaN, - 'null': null, - 'undefined': undefined, - } as const; + false: false, + emptyString: '', + zero: 0, + emptyArray: [], + nan: NaN, + null: null, + undefined: undefined + } as const; await pst.writeInteraction({ function: 'kvPut', @@ -162,10 +162,12 @@ describe('Testing the Profit Sharing Token', () => { }); await mineBlock(warp); - const { kvGet } = - (await pst.viewState({ + const { kvGet } = ( + await pst.viewState({ function: 'kvGet', - kvGet: Object.keys(falsyEntries) })).result; + kvGet: Object.keys(falsyEntries) + }) + ).result; expect(kvGet.emptyArray).toEqual([]); expect(kvGet.emptyString).toEqual('');