diff --git a/package.json b/package.json index 01b328b..78a0fe8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "warp-contracts", - "version": "1.4.17", + "version": "1.4.18", "description": "An implementation of the SmartWeave smart contract protocol.", "types": "./lib/types/index.d.ts", "main": "./lib/cjs/index.js", diff --git a/src/__tests__/integration/basic/constructor.test.ts b/src/__tests__/integration/basic/constructor.test.ts index 0bb2b42..76a5a43 100644 --- a/src/__tests__/integration/basic/constructor.test.ts +++ b/src/__tests__/integration/basic/constructor.test.ts @@ -9,10 +9,10 @@ import { LoggerFactory } from '../../../logging/LoggerFactory'; import { DeployPlugin } from 'warp-contracts-plugin-deploy'; import { mineBlock } from '../_helpers'; import { WriteInteractionResponse } from '../../../contract/Contract'; -import { HandlerBasedContract } from "../../../contract/HandlerBasedContract"; -import { emptyTransfer } from "../../../contract/deploy/CreateContract"; -import { Tag } from "../../../utils/types/arweave-types"; -import { WARP_TAGS } from "../../../core/KnownTags"; +import { HandlerBasedContract } from '../../../contract/HandlerBasedContract'; +import { emptyTransfer } from '../../../contract/deploy/CreateContract'; +import { Tag } from '../../../utils/types/arweave-types'; +import { WARP_TAGS } from '../../../core/KnownTags'; describe('Constructor', () => { let contractSrc: string; @@ -329,7 +329,10 @@ describe('Constructor', () => { // and with the SDK version the supports constructors - results in an error thrown during internal writes // discovery - in other words, it is not possible to create any interaction with such contract. const hackyTransaction = await (withoutConstructorContract as HandlerBasedContract).createInteraction( - { function: "doWrite" }, [new Tag(WARP_TAGS.INTERACT_WRITE, readExternalContract.txId())], emptyTransfer, false + { function: 'doWrite' }, + [new Tag(WARP_TAGS.INTERACT_WRITE, readExternalContract.txId())], + emptyTransfer, + false ); await warp.arweave.transactions.post(hackyTransaction); diff --git a/src/__tests__/unit/gateway-interactions.loader.test.ts b/src/__tests__/unit/gateway-interactions.loader.test.ts index 74ba656..42954a5 100644 --- a/src/__tests__/unit/gateway-interactions.loader.test.ts +++ b/src/__tests__/unit/gateway-interactions.loader.test.ts @@ -7,7 +7,7 @@ import { import { GQLNodeInterface } from '../../legacy/gqlResult'; import { LoggerFactory } from '../../logging/LoggerFactory'; import { WarpFactory } from '../../core/WarpFactory'; -import { NetworkCommunicationError } from "../../utils/utils"; +import { NetworkCommunicationError } from '../../utils/utils'; const responseData = { paging: { diff --git a/src/core/modules/impl/handler/WasmHandlerApi.ts b/src/core/modules/impl/handler/WasmHandlerApi.ts index 1fd0343..c5f06b0 100644 --- a/src/core/modules/impl/handler/WasmHandlerApi.ts +++ b/src/core/modules/impl/handler/WasmHandlerApi.ts @@ -11,7 +11,7 @@ import { NonWhitelistedSourceError } from '../HandlerExecutorFactory'; import { AbstractContractHandler } from './AbstractContractHandler'; -import { NetworkCommunicationError } from "../../../../utils/utils"; +import { NetworkCommunicationError } from '../../../../utils/utils'; export class WasmHandlerApi extends AbstractContractHandler { constructor( diff --git a/src/utils/utils.ts b/src/utils/utils.ts index 31556d4..edc0f1a 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -1,7 +1,7 @@ /* eslint-disable */ import copy from 'fast-copy'; import { Buffer } from 'warp-isomorphic'; -import { KnownErrors } from "../core/modules/impl/handler/JsHandlerApi"; +import { KnownErrors } from '../core/modules/impl/handler/JsHandlerApi'; export const sleep = (ms: number): Promise => { return new Promise((resolve) => setTimeout(resolve, ms));