diff --git a/packages/sc-project-initializer/commands/init/.env.example b/packages/sc-project-initializer/commands/init/.env.example index aa68686f..6fc16b3c 100644 --- a/packages/sc-project-initializer/commands/init/.env.example +++ b/packages/sc-project-initializer/commands/init/.env.example @@ -1,2 +1 @@ -PRIVATE_KEY="" -JSON_RPC_URL_PUBLIC=https://buildnet.massa.net/api/v2:33035 +PRIVATE_KEY= diff --git a/packages/sc-project-initializer/commands/init/src/deploy.ts b/packages/sc-project-initializer/commands/init/src/deploy.ts index 5476ec1d..186862c9 100644 --- a/packages/sc-project-initializer/commands/init/src/deploy.ts +++ b/packages/sc-project-initializer/commands/init/src/deploy.ts @@ -6,10 +6,10 @@ import { Mas, SmartContract, } from '@massalabs/massa-web3'; -import { getScByteCode, getEnvVariable } from './utils'; +import { getScByteCode } from './utils'; async function deploy() { - const client = new JsonRPCClient(getEnvVariable('JSON_RPC_URL_PUBLIC')); + const client = JsonRPCClient.buildnet(); const account = await Account.fromEnv(); console.log('Deploying contract...');