Skip to content

Commit

Permalink
Use default buildnet client
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjah committed Jul 9, 2024
1 parent b2fe9d8 commit f1f85e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/sc-project-initializer/commands/init/.env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
PRIVATE_KEY=""
JSON_RPC_URL_PUBLIC=https://buildnet.massa.net/api/v2:33035
PRIVATE_KEY=
4 changes: 2 additions & 2 deletions packages/sc-project-initializer/commands/init/src/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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...');
Expand Down

0 comments on commit f1f85e4

Please sign in to comment.