Skip to content

hi,a error when delpoy,help! #2

@rectinajh

Description

@rectinajh

when i deploy like this script,i don't know how to solve it.

npm run deploy:rinkeby

mysterybox@1.0.0 deploy:rinkeby
hardhat --network rinkeby deploy

Nothing to compile
An unexpected error occurred:

Error: ERROR processing /Users/a212/Desktop/MysteryBox/deploy/deploy.ts:
Error: Contract at 0x9A676e781A523b5d0C0e43731313A708CB607508 doesn't look like an EIP 1967 proxy
at Object.getImplementationAddress (/Users/a212/Desktop/MysteryBox/node_modules/@openzeppelin/upgrades-core/src/eip-1967.ts:20:11)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at Object.deployImpl (/Users/a212/Desktop/MysteryBox/node_modules/@openzeppelin/hardhat-upgrades/src/utils/deploy-impl.ts:35:32)
at Proxy.upgradeProxy (/Users/a212/Desktop/MysteryBox/node_modules/@openzeppelin/hardhat-upgrades/src/upgrade-proxy.ts:36:22)
at Object.func (/Users/a212/Desktop/MysteryBox/deploy/deploy.ts:93:9)
at DeploymentsManager.executeDeployScripts (/Users/a212/Desktop/MysteryBox/node_modules/hardhat-deploy/src/DeploymentsManager.ts:1006:22)
at DeploymentsManager.runDeploy (/Users/a212/Desktop/MysteryBox/node_modules/hardhat-deploy/src/DeploymentsManager.ts:844:5)
at Environment._runTaskDefinition (/Users/a212/Desktop/MysteryBox/node_modules/hardhat/src/internal/core/runtime-environment.ts:217:14)
at Environment.run (/Users/a212/Desktop/MysteryBox/node_modules/hardhat/src/internal/core/runtime-environment.ts:129:14)
at SimpleTaskDefinition.action (/Users/a212/Desktop/MysteryBox/node_modules/hardhat-deploy/src/index.ts:446:32)
at DeploymentsManager.executeDeployScripts (/Users/a212/Desktop/MysteryBox/node_modules/hardhat-deploy/src/DeploymentsManager.ts:1009:19)
at processTicksAndRejections (internal/process/task_queues.js:97:5)

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions