Skip to content

Commit

Permalink
fix massa-web3 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Rey committed Jul 8, 2024
1 parent 5d7d9eb commit 28c282e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion packages/sc-project-initializer/commands/init/src/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ async function deploy() {
const client = new JsonRPCClient(getEnvVariable('JSON_RPC_URL_PUBLIC'));
const account = await Account.fromEnv();

console.log('Deploying contract...');

const contract = await SmartContract.deploy(client, account, {
byteCode: getScByteCode('build', 'main.wasm'),
parameter: new Args().serialize(),
parameter: new Args().addString('Massa').serialize(),
coins: Mas.fromString('0.01'),
});

Expand Down

0 comments on commit 28c282e

Please sign in to comment.