Skip to content

Commit

Permalink
chore(js): lint the code
Browse files Browse the repository at this point in the history
  • Loading branch information
danijelTxFusion committed Feb 29, 2024
1 parent 69347e9 commit 2609aca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"dependencies": {
"zksync-ethers": "^6.4.0"
},

"peerDependencies": {
"ethers": "^6.7.1"
},
Expand Down
7 changes: 3 additions & 4 deletions js/src/12_deploy_create.ts
Original file line number Diff line number Diff line change
@@ -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);
Expand All @@ -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;
Expand All @@ -34,8 +33,8 @@ async function main() {
minimalAllowance: 1,
innerInput: new Uint8Array(),
}),
}
})
},
});
await paymasterTx.wait();
console.log(`Value: ${await storage.get()}`);
}
Expand Down
4 changes: 2 additions & 2 deletions js/src/15_deploy_create2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ async function main() {
minimalAllowance: 1,
innerInput: new Uint8Array(),
}),
}
})
},
});
await paymasterTx.wait();
console.log(`Value: ${await storage.get()}`);
}
Expand Down

0 comments on commit 2609aca

Please sign in to comment.