From f70faadaa09a32348b713423f6121388c1425998 Mon Sep 17 00:00:00 2001 From: GlacierLuo <1090490148@qq.com> Date: Wed, 3 May 2023 19:20:16 +0800 Subject: [PATCH] Fix a lint problem. --- .changeset/plenty-pets-heal.md | 5 +++++ packages/core/src/editor/utils/deploy.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/plenty-pets-heal.md diff --git a/.changeset/plenty-pets-heal.md b/.changeset/plenty-pets-heal.md new file mode 100644 index 0000000..bc3d0fd --- /dev/null +++ b/.changeset/plenty-pets-heal.md @@ -0,0 +1,5 @@ +--- +"solive-core": patch +--- + +Fix a lint problem. diff --git a/packages/core/src/editor/utils/deploy.ts b/packages/core/src/editor/utils/deploy.ts index 8b77417..c8d9d78 100644 --- a/packages/core/src/editor/utils/deploy.ts +++ b/packages/core/src/editor/utils/deploy.ts @@ -7,7 +7,7 @@ const deploy = async ( bytecode: string, signer: providers.JsonRpcSigner, callOptions: {value: number; gasLimit: number}, - args: any[] + args: any[], ): Promise<[Contract, ethers.providers.TransactionReceipt]> => { const contractFactory = new ethers.ContractFactory(abi, bytecode, signer); const instance = await contractFactory.deploy(...(args || []), { @@ -16,7 +16,7 @@ const deploy = async ( }); const tx = await instance.deployTransaction.wait(); return [instance, tx]; -} +}; // const getBytecode = (compiledContract: any) => compiledContract.evm.bytecode.object;