From 3f6bf0ad3ab9e8e75ca86947715c9a4fcf92883e Mon Sep 17 00:00:00 2001 From: ppe Date: Tue, 31 Jan 2023 15:59:19 +0100 Subject: [PATCH] v1.2.51 --- package.json | 4 ++-- src/__tests__/integration/basic/pst-kv.test.ts | 12 +++++------- src/__tests__/unit/evaluation-options.test.ts | 8 +++++--- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 30e9b871..9b6a1016 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "warp-contracts", - "version": "1.2.50", + "version": "1.2.51", "description": "An implementation of the SmartWeave smart contract protocol.", "types": "./lib/types/index.d.ts", "main": "./lib/cjs/index.js", @@ -74,11 +74,11 @@ "fast-copy": "^3.0.0", "level": "^8.0.0", "memory-level": "^1.0.0", - "warp-isomorphic": "1.0.0", "safe-stable-stringify": "2.4.1", "stream-buffers": "^3.0.2", "unzipit": "^1.4.0", "vm2": "3.9.11", + "warp-isomorphic": "1.0.0", "warp-wasm-metering": "1.0.0" }, "devDependencies": { diff --git a/src/__tests__/integration/basic/pst-kv.test.ts b/src/__tests__/integration/basic/pst-kv.test.ts index 647fd489..21772a04 100644 --- a/src/__tests__/integration/basic/pst-kv.test.ts +++ b/src/__tests__/integration/basic/pst-kv.test.ts @@ -111,13 +111,11 @@ describe('Testing the Profit Sharing Token', () => { }); it('should read pst state and balance ignoring dry runs', async () => { - await pst.dryWrite( - { - function: 'transfer', - target: 'uhE-QeYS8i4pmUtnxQyHD7dzXFNaJ9oMK-IM-QPNY6M', - qty: 111 - } - ); + await pst.dryWrite({ + function: 'transfer', + target: 'uhE-QeYS8i4pmUtnxQyHD7dzXFNaJ9oMK-IM-QPNY6M', + qty: 111 + }); await mineBlock(warp); diff --git a/src/__tests__/unit/evaluation-options.test.ts b/src/__tests__/unit/evaluation-options.test.ts index b255b962..cd2b5693 100644 --- a/src/__tests__/unit/evaluation-options.test.ts +++ b/src/__tests__/unit/evaluation-options.test.ts @@ -86,7 +86,7 @@ describe('Evaluation options evaluator', () => { maxInteractionEvaluationTimeSeconds: 60, mineArLocalBlocks: true, sequencerUrl: 'https://d1o5nlqr4okus2.cloudfront.net/', - sourceType: "both", + sourceType: 'both', stackTrace: { saveState: false }, @@ -212,7 +212,7 @@ describe('Evaluation options evaluator', () => { ignoreExceptions: false, sourceType: null }); - const eoEvaluator = new EvaluationOptionsEvaluator(contract.evaluationOptions(), {sourceType: SourceType.BOTH}); + const eoEvaluator = new EvaluationOptionsEvaluator(contract.evaluationOptions(), { sourceType: SourceType.BOTH }); expect(eoEvaluator.forForeignContract({ ignoreExceptions: true })['sourceType']).toEqual(SourceType.BOTH); expect(eoEvaluator.forForeignContract({ ignoreExceptions: false })['sourceType']).toEqual(SourceType.BOTH); @@ -223,7 +223,9 @@ describe('Evaluation options evaluator', () => { ignoreExceptions: false, sourceType: SourceType.BOTH }); - const eoEvaluator = new EvaluationOptionsEvaluator(contract.evaluationOptions(), {sourceType: SourceType.ARWEAVE}); + const eoEvaluator = new EvaluationOptionsEvaluator(contract.evaluationOptions(), { + sourceType: SourceType.ARWEAVE + }); expect(eoEvaluator.forForeignContract({ ignoreExceptions: true })['sourceType']).toEqual(SourceType.ARWEAVE); expect(eoEvaluator.forForeignContract({ ignoreExceptions: false })['sourceType']).toEqual(SourceType.ARWEAVE);