From aeb3884bd3104a5ee2818e71379e8a19c5370b24 Mon Sep 17 00:00:00 2001 From: ppe Date: Fri, 12 Aug 2022 12:37:29 +0200 Subject: [PATCH] v1.2.0-rc.1 --- package.json | 2 +- src/__tests__/regression/read-state.test.ts | 35 +++++++++++---------- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index b8e10907..2e743252 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "warp-contracts", - "version": "1.2.0-rc.0", + "version": "1.2.0-rc.1", "description": "An implementation of the SmartWeave smart contract protocol.", "main": "./lib/cjs/index.js", "module": "./lib/esm/index.js", diff --git a/src/__tests__/regression/read-state.test.ts b/src/__tests__/regression/read-state.test.ts index 1832105b..d72a6eb4 100644 --- a/src/__tests__/regression/read-state.test.ts +++ b/src/__tests__/regression/read-state.test.ts @@ -130,7 +130,8 @@ describe.each(chunkedGw)('gateways compare.suite %#', (contracts: string[]) => { ) .useWarpGateway({ ...defaultWarpGwOptions, source: SourceType.ARWEAVE, confirmationStatus: null }) .build(); - const result = await warpR.contract(contractTxId) + const result = await warpR + .contract(contractTxId) .setEvaluationOptions({ useFastCopy: true, allowUnsafeClient: true, @@ -171,22 +172,22 @@ describe('readState', () => { const result = await readContract(arweave, contractTxId, blockHeight); const resultString = stringify(result).trim(); - const result2 = await WarpFactory.custom( - arweave, - { - ...defaultCacheOptions, - inMemory: true - }, - 'mainnet' - ) - .useWarpGateway({ ...defaultWarpGwOptions, source: SourceType.ARWEAVE, confirmationStatus: null }) - .build() - .contract(contractTxId) - .setEvaluationOptions({ - allowUnsafeClient: true - }) - .readState(blockHeight); - const result2String = stringify(result2.cachedValue.state).trim(); + const result2 = await WarpFactory.custom( + arweave, + { + ...defaultCacheOptions, + inMemory: true + }, + 'mainnet' + ) + .useWarpGateway({ ...defaultWarpGwOptions, source: SourceType.ARWEAVE, confirmationStatus: null }) + .build() + .contract(contractTxId) + .setEvaluationOptions({ + allowUnsafeClient: true + }) + .readState(blockHeight); + const result2String = stringify(result2.cachedValue.state).trim(); expect(result2String).toEqual(resultString); }, 800000);