chore: lint

This commit is contained in:
ppedziwiatr
2022-02-22 22:31:39 +01:00
parent a679c04ebe
commit ee1cc738be
2 changed files with 3 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ import fs from 'fs';
import ArLocal from 'arlocal';
import Arweave from 'arweave';
import { JWKInterface } from 'arweave/node/lib/wallet';
import {Contract, getTag, LoggerFactory, SmartWeave, SmartWeaveNodeFactory, SmartWeaveTags} from '@smartweave';
import { Contract, getTag, LoggerFactory, SmartWeave, SmartWeaveNodeFactory, SmartWeaveTags } from '@smartweave';
import path from 'path';
import { addFunds, mineBlock } from './_helpers';

View File

@@ -1,3 +1,4 @@
/* eslint-disable */
import { ContractData, ContractType, CreateContract, FromSrcTxContractData, SmartWeaveTags } from '@smartweave/core';
import Arweave from 'arweave';
import { LoggerFactory } from '@smartweave/logging';
@@ -41,7 +42,7 @@ export class DefaultCreateContract implements CreateContract {
const module = await WebAssembly.instantiate(src, dummyImports());
// @ts-ignore
if (!module.instance.exports.type) {
throw new Error(`No info about source type in wasm binary. Did you forget to export global "type" value`);
throw new Error(`No info about source type in wasm binary. Did you forget to export global "type" value?`);
}
// @ts-ignore
const type = module.instance.exports.type.value;