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);