Skip to content

Commit

Permalink
v1.2.0-rc.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ppedziwiatr committed Aug 12, 2022
1 parent ede78f6 commit aeb3884
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
35 changes: 18 additions & 17 deletions src/__tests__/regression/read-state.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit aeb3884

Please sign in to comment.