Closed emretepedev closed 2 years ago
This can happen when you are deploying the contract on a different network than the one connected to the workspace. Can you double check that the workspace rpc endpoint is the same than the one you are passing when doing npx hardhat run --network
?
This can happen when you are deploying the contract on a different network than the one connected to the workspace. Can you double check that the workspace rpc endpoint is the same than the one you are passing when doing
npx hardhat run --network
?
I am running on the Hardhat network via hardhat node
.
Started HTTP and WebSocket JSON-RPC server at http://127.0.0.1:8545/
And I run deploy script: hardhat run scripts/deploy.ts --network hardhat
KtaToken deployed to: 0x5FbDB2315678afecb367f032d93F642f64180aa3
[Ethernal] Updated artifacts for contract KtaToken (0x5FbDB2315678afecb367f032d93F642f64180aa3). Dependencies: ...
And I run deploy script: hardhat run scripts/deploy.ts --network hardhat
Can you try npx hardhat run scripts/deploy.ts --network localhost
?
And I run deploy script: hardhat run scripts/deploy.ts --network hardhat
Can you try
npx hardhat run scripts/deploy.ts --network localhost
?
It works, Thanks for all!
Nice! No worries, let me know if you need anything else :)
hardhat.config.ts
deploy.ts
It throws this error when I interact with the contract:
call revert exception [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] (method="decimals()", data="0x", errorArgs=null, errorName=null, errorSignature=null, reason=null, code=CALL_EXCEPTION, version=abi/5.6.4)
I am running on the Hardhat network via
hardhat node
.Started HTTP and WebSocket JSON-RPC server at http://127.0.0.1:8545/
And I run deploy script:
hardhat run scripts/deploy.ts --network hardhat
What am I missing?