From 502f58bc029594a7fe9e6cd5013bb30aa429eb85 Mon Sep 17 00:00:00 2001 From: danijelTxFusion Date: Thu, 29 Feb 2024 20:26:30 +0100 Subject: [PATCH] chore(js): lint the code --- js/package.json | 1 - js/src/12_deploy_create.ts | 7 +++---- js/src/15_deploy_create2.ts | 4 ++-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/js/package.json b/js/package.json index 40843bd..bcaec94 100644 --- a/js/package.json +++ b/js/package.json @@ -17,7 +17,6 @@ "dependencies": { "zksync-ethers": "^6.4.0" }, - "peerDependencies": { "ethers": "^6.7.1" }, diff --git a/js/src/12_deploy_create.ts b/js/src/12_deploy_create.ts index eeb272e..101d669 100644 --- a/js/src/12_deploy_create.ts +++ b/js/src/12_deploy_create.ts @@ -1,4 +1,4 @@ -import {Provider, types, Wallet, ContractFactory, Contract, utils} from "zksync-ethers"; +import { Provider, types, Wallet, ContractFactory, Contract, utils } from "zksync-ethers"; import { Typed } from "ethers"; const provider = Provider.getDefaultProvider(types.Network.Sepolia); @@ -8,7 +8,6 @@ const wallet = new Wallet(PRIVATE_KEY, provider); const tokenAddress = "0x927488F48ffbc32112F1fF721759649A89721F8F"; // Crown token which can be minted for free const paymasterAddress = "0x13D0D8550769f59aa241a41897D4859c87f7Dd46"; // Paymaster for Crown token - async function main() { const conf = require("../../solidity/storage/build/combined.json"); const abi = conf.contracts["Storage.sol:Storage"].abi; @@ -34,8 +33,8 @@ async function main() { minimalAllowance: 1, innerInput: new Uint8Array(), }), - } - }) + }, + }); await paymasterTx.wait(); console.log(`Value: ${await storage.get()}`); } diff --git a/js/src/15_deploy_create2.ts b/js/src/15_deploy_create2.ts index 29e6eb9..7e01f8f 100644 --- a/js/src/15_deploy_create2.ts +++ b/js/src/15_deploy_create2.ts @@ -35,8 +35,8 @@ async function main() { minimalAllowance: 1, innerInput: new Uint8Array(), }), - } - }) + }, + }); await paymasterTx.wait(); console.log(`Value: ${await storage.get()}`); }