Deploploying Contract to Tesnet Network

Hi team, I am trying to deploy myFirstAepp to the test network Like : forgae deploy -n https://sdk-testnet.aepps.com -s --------privkey----

I am getting the below error but working in my local node:

Error: Unrecognized network https://sdk-testnet.aepps.com

  • at Object.getNetwork (/home/julius/Development/myFirstAepp/node_modules/forgae-utils/utils/forgae-utils.js:51:15)*
  • at new Deployer (/home/julius/Development/myFirstAepp/node_modules/forgae-lib/forgae-deployer.js:41:30)*
  • at deploy (/home/julius/Development/myFirstAepp/deployment/deploy.js:52:18)*
  • at Object.run (/usr/local/lib/node_modules/forgae/forgae-deploy/deploy.js:25:15)*
  • at Command.program.command.description.option.option.option.option.action (/usr/local/lib/node_modules/forgae/commands.js:81:26)*
  • at Command.listener (/usr/local/lib/node_modules/forgae/node_modules/commander/index.js:315:8)*
  • at Command.emit (events.js:189:13)*
  • at Command.EventEmitter.emit (domain.js:441:20)*
  • at Command.parseArgs (/usr/local/lib/node_modules/forgae/node_modules/commander/index.js:651:12)*
  • at Command.parse (/usr/local/lib/node_modules/forgae/node_modules/commander/index.js:474:21)*
    (node:31561) UnhandledPromiseRejectionWarning: Error: Unrecognized network https://sdk-testnet.aepps.com
  • at Object.getNetwork (/home/julius/Development/myFirstAepp/node_modules/forgae-utils/utils/forgae-utils.js:51:15)*
  • at new Deployer (/home/julius/Development/myFirstAepp/node_modules/forgae-lib/forgae-deployer.js:41:30)*
  • at deploy (/home/julius/Development/myFirstAepp/deployment/deploy.js:52:18)*
  • at Object.run (/usr/local/lib/node_modules/forgae/forgae-deploy/deploy.js:25:15)*
  • at Command.program.command.description.option.option.option.option.action (/usr/local/lib/node_modules/forgae/commands.js:81:26)*
  • at Command.listener (/usr/local/lib/node_modules/forgae/node_modules/commander/index.js:315:8)*
  • at Command.emit (events.js:189:13)*
  • at Command.EventEmitter.emit (domain.js:441:20)*
  • at Command.parseArgs (/usr/local/lib/node_modules/forgae/node_modules/commander/index.js:651:12)*
  • at Command.parse (/usr/local/lib/node_modules/forgae/node_modules/commander/index.js:474:21)*
    (node:31561) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
    (node:31561) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
1 Like

Hey @Julius, you don’t need to provide the whole link to the testnet when using forgae

You can simply try this:
forgae deploy -n testnet -s yoursecretkey

Best,
Martin

1 Like

Hi MartinG,
Thank you for the response.
Applying the command I got: Error: Error: connect ECONNREFUSED 127.0.0.1:3080
After changing the forgae config.json compilerUrl, it to worked.
Replaced:
“compilerUrl”: “http://localhost:3080”,
“compilerVersion”: “v2.1.0”
With:
“compilerUrl”: “https://compiler.aepps.com

1 Like

Lovely, we will investigate the issue with the compiler, it is really strange.

2 Likes