I have an issue with deploying the smart contract to the devnet.
After sending the command anchor deploy
the following error comes out:
Deploying workspace: http://localhost:8899 Upgrade authority: /Users/superuser/.config/solana/id.json Deploying program "dividend-distribution"... Program path: /Users/superuser/MyToken/hng-test/smart-contract-test/dividend-distribution/target/deploy/dividend_distribution.so... Error: RPC request error: cluster version query failed: error sending request for url (http://localhost:8899/): error trying to connect: tcp connect error: Connection refused (os error 61) There was a problem deploying: Output { status: ExitStatus(unix_wait_status(256)), stdout: "", stderr: "" }.
It still shows that I am deploying to the local host workspace, although I changed it in the toml file and solana config to devnet.
Nicolas Mere is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.