Now I am getting this when I try to deploy the contract, after completing removing the relays and approval process, recreating them:
gerald@gk-hardhat:~$ cd deploy-tutorial
gerald@gk-hardhat:~/deploy-tutorial$ npx hardhat run --network sepolia scripts/deploy.ts
NotAuthorizedException: Incorrect username or password.
at /home/gerald/deploy-tutorial/node_modules/amazon-cognito-identity-js/lib/Client.js:128:19
at processTicksAndRejections (node:internal/process/task_queues:95:5) {
code: 'NotAuthorizedException'
}
gerald@gk-hardhat:~/deploy-tutorial$
Then I invoke command as “su” and this is what I get:
gerald@gk-hardhat:~/deploy-tutorial$ sudo su
root@gk-hardhat:/home/gerald/deploy-tutorial# npx hardhat run --network sepolia scripts/upgrade.ts
Error HH601: Script scripts/upgrade.ts doesn't exist.
HardhatError: HH601: Script scripts/upgrade.ts doesn't exist.
at SimpleTaskDefinition.action (/home/gerald/deploy-tutorial/node_modules/hardhat/src/builtin-tasks/run.ts:25:15)
at async Environment._runTaskDefinition (/home/gerald/deploy-tutorial/node_modules/hardhat/src/internal/core/runtime-environment.ts:359:14)
at async Environment.run (/home/gerald/deploy-tutorial/node_modules/hardhat/src/internal/core/runtime-environment.ts:192:14)
at async main (/home/gerald/deploy-tutorial/node_modules/hardhat/src/internal/cli/cli.ts:323:7)
root@gk-hardhat:/home/gerald/deploy-tutorial#