From f1f85e49c6461e89bd8c1ba3985b3cd697a01354 Mon Sep 17 00:00:00 2001 From: Pierre Seznec Date: Tue, 9 Jul 2024 15:31:11 +0200 Subject: [PATCH] Use default buildnet client --- packages/sc-project-initializer/commands/init/.env.example | 3 +-- packages/sc-project-initializer/commands/init/src/deploy.ts | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) 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...');