diff --git a/README.md b/README.md index bcb7436..c3dc0cd 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ It is also **mandatory** to specify the naming convention for migrations such as ## Tasks - `migrate` task, which allows you to deploy and automatically verify contracts. - +- `migrate:verify` task, which helps you verify already deployed contracts. > :warning: **Hardhat Config**: Make sure they are follow the docs from `@nomicfoundation/hardhat-verify`. @@ -80,7 +80,8 @@ module.exports = { skip: -1, wait: 1, verify: false, - attempts: 0, + verifyParallel: 1, + verifyAttempts: 3, pathToMigrations: "./deploy", force: false, continue: false, @@ -96,7 +97,8 @@ module.exports = { - `skip`: The number of migration to skip. **Overrides only parameter.** - `wait` : The number of confirmations to wait for after the transaction is mined. - `verify` : The flag indicating whether the contracts should be verified. -- `attempts`: The number of attempts to verify the contract. +- `verifyParallel` : The size of the batch for verification. +- `verifyAttempts` : The number of attempts to verify the contract. - `pathToMigrations` : The path to the folder with the specified migrations. - `force` : The flag indicating whether the contracts compilation is forced. - `continue` : The flag indicating whether the deployment should restore the state from the previous deployment. diff --git a/package.json b/package.json index 5379447..a3c4bac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@solarity/hardhat-migrate", - "version": "2.0.0-alpha.4", + "version": "2.0.0-alpha.5", "description": "Automatic deployment and verification of smart contracts", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", diff --git a/src/deployer/adapters/TruffleAdapter.ts b/src/deployer/adapters/TruffleAdapter.ts index ae2e2b6..159b504 100644 --- a/src/deployer/adapters/TruffleAdapter.ts +++ b/src/deployer/adapters/TruffleAdapter.ts @@ -42,10 +42,11 @@ export class TruffleAdapter extends Adapter { ); } - public async toInstance(instance: TruffleFactory, address: string): Promise { + // eslint-disable-next-line @typescript-eslint/no-unused-vars + public async toInstance(instance: TruffleFactory, address: string, _: OverridesAndMisc): Promise { const contract = this._hre.artifacts.require(instance.contractName!); - await this._overrideConnectMethod(instance); + await this._overrideConnectMethod(contract); return contract.at(address); }