Skip to content

Commit

Permalink
chore: update deployer
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahschwartz committed Sep 19, 2024
1 parent 7ee7e11 commit 4971f7b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 117 deletions.
2 changes: 1 addition & 1 deletion code/webauthn/contracts/deploy/deploy.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { utils, Wallet, Provider } from 'zksync-ethers';
import type { HardhatRuntimeEnvironment } from 'hardhat/types';
import { Deployer } from '@matterlabs/hardhat-zksync-deploy';
import { Deployer } from '@matterlabs/hardhat-zksync';
// load env file
import dotenv from 'dotenv';
import { ethers } from 'ethers';
Expand Down
5 changes: 1 addition & 4 deletions code/webauthn/contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import type { HardhatUserConfig } from 'hardhat/config';

import '@matterlabs/hardhat-zksync-node';
import '@matterlabs/hardhat-zksync-deploy';
import '@matterlabs/hardhat-zksync-solc';
import '@matterlabs/hardhat-zksync-verify';
import '@matterlabs/hardhat-zksync';

const config: HardhatUserConfig = {
defaultNetwork: 'inMemoryNode',
Expand Down
82 changes: 0 additions & 82 deletions code/webauthn/contracts/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion code/webauthn/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
},
"devDependencies": {
"@matterlabs/hardhat-zksync": "^1.1.0",
"@matterlabs/hardhat-zksync-deploy": "^1.3.0",
"@matterlabs/zksync-contracts": "^0.6.1",
"@nomicfoundation/hardhat-verify": "^2.0.9",
"@openzeppelin/contracts": "^4.9.5",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,30 +35,13 @@ Enter the private key below for a pre-configured rich wallet:

:test-action{actionId="add-env-pk"}

Once that is done, move into the `contracts` folders and
install the dependency below:

:test-action{actionId="install-deps"}

::code-group

```bash [npm]
cd contracts
npm install -D @matterlabs/[email protected]
```

```bash [yarn]
cd contracts
yarn add -D @matterlabs/[email protected]
```

::

Then, delete the template contracts, scripts, and tests:
Once that is done, move into the `contracts` folder
and delete the template contracts, scripts, and tests:

:test-action{actionId="remove-template-files"}

```shell
cd contracts
rm -rf ./contracts/*
rm -rf ./deploy/*
rm -rf ./test/*
Expand Down
10 changes: 1 addition & 9 deletions tests/configs/signing-txns-with-webauthn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,9 @@ const contractSteps: IStepConfig = {
atLine: 1,
removeLines: [1],
},
'install-deps': {
action: 'runCommand',
commandFolder: 'tests-output/zksync-webauthn',
},
'wait-for-install': {
action: 'wait',
timeout: 5000,
},
'remove-template-files': {
action: 'runCommand',
commandFolder: 'tests-output/zksync-webauthn/contracts',
commandFolder: 'tests-output/zksync-webauthn',
},
'create-paymaster': {
action: 'runCommand',
Expand Down

0 comments on commit 4971f7b

Please sign in to comment.