From c15fc34873fc26a9192e3df01dcf6d69de33be9d Mon Sep 17 00:00:00 2001 From: robal Date: Fri, 17 Mar 2023 12:15:51 +0100 Subject: [PATCH] chore: silent vscode complaining about unknown types --- .../integration/wasm/rust-deploy-write-read.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/__tests__/integration/wasm/rust-deploy-write-read.test.ts b/src/__tests__/integration/wasm/rust-deploy-write-read.test.ts index a1104d5..3708f98 100644 --- a/src/__tests__/integration/wasm/rust-deploy-write-read.test.ts +++ b/src/__tests__/integration/wasm/rust-deploy-write-read.test.ts @@ -14,6 +14,7 @@ import { ArweaveWrapper } from '../../../utils/ArweaveWrapper'; import { TagsParser } from '../../../core/modules/impl/TagsParser'; import { DeployPlugin } from 'warp-contracts-plugin-deploy'; import { SMART_WEAVE_TAGS, WARP_TAGS } from '../../../core/KnownTags'; +import { InteractionResult } from '../../../core/modules/impl/HandlerExecutorFactory'; describe('Testing the Rust WASM Profit Sharing Token', () => { let wallet: JWKInterface; @@ -181,7 +182,7 @@ describe('Testing the Rust WASM Profit Sharing Token', () => { }); xit('should return stable gas results', async () => { - const results = []; + const results: InteractionResult[] = []; for (let i = 0; i < 10; i++) { const result = await pst.dryWrite({ @@ -264,6 +265,6 @@ describe('Testing the Rust WASM Profit Sharing Token', () => { }); expect(result.type).toEqual('exception'); - expect(result.errorMessage.startsWith('[RE:OOG] Out of gas!')).toBeTruthy(); + expect(result.errorMessage?.startsWith('[RE:OOG] Out of gas!')).toBeTruthy(); }); });