0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

コントラクトのデプロイ時にunknown transaction override _hex エラー

Last updated at Posted at 2022-10-13

hardhatでコントラクトのデプロイ時に以下のエラーが出る場合

Error: unknown transaction override _hex
    at ContractFactory.getDeployTransaction (./node_modules/@ethersproject/contracts/src.ts/index.ts:1194:27)
    at ContractFactory.<anonymous> (./node_modules/@ethersproject/contracts/src.ts/index.ts:1244:53)
    at step (./node_modules/@ethersproject/contracts/lib/index.js:48:23)
    at Object.next (./node_modules/@ethersproject/contracts/lib/index.js:29:53)
    at fulfilled (./node_modules/@ethersproject/contracts/lib/index.js:20:58)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)

deploy()でコントラクトに渡すコンストラクタへの引数が間違ってないか確認する。

  const Verifier = await ethers.getContractFactory("Verifier20");
  const v = await Verifier.deploy();
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?