You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yarn hardhat run scripts/upgrade-box.js --network localhost
I'm facing the following error while running "upgrade-box.js".
TypeError: invalid value for Contract target (argument="target", value=null, code=INVALID_ARGUMENT, version=6.12.0)
at makeError (/home/xck/playground/hardhat-upgrades-fcc/node_modules/ethers/src.ts/utils/errors.ts:687:21)
at assert (/home/xck/playground/hardhat-upgrades-fcc/node_modules/ethers/src.ts/utils/errors.ts:715:25)
at assertArgument (/home/xck/playground/hardhat-upgrades-fcc/node_modules/ethers/src.ts/utils/errors.ts:727:5)
at new BaseContract (/home/xck/playground/hardhat-upgrades-fcc/node_modules/ethers/src.ts/contract/contract.ts:686:23)
at new Contract (/home/xck/playground/hardhat-upgrades-fcc/node_modules/ethers/src.ts/contract/contract.ts:1120:1)
at getContractAtFromArtifact (/home/xck/playground/hardhat-upgrades-fcc/node_modules/@nomicfoundation/hardhat-ethers/src/internal/helpers.ts:413:18)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at main (/home/xck/playground/hardhat-upgrades-fcc/scripts/upgrade-box.js:7:22) {
code: 'INVALID_ARGUMENT',
argument: 'target',
value: undefined,
shortMessage: 'invalid value for Contract target'
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
While running :
I'm facing the following error while running "upgrade-box.js".
Here is "upgrade-box.js"
Here is my package.json file
Beta Was this translation helpful? Give feedback.
All reactions