Skip to content

Commit

Permalink
update massa-as-sdk to 2.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Rey committed Dec 29, 2023
1 parent 2cc42dc commit 3503e6a
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 10 deletions.
109 changes: 105 additions & 4 deletions package-lock.json

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

6 changes: 2 additions & 4 deletions packages/sc-deployer/assembly/contracts/deployer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ import {
functionExists,
hasOpKey,
} from '@massalabs/massa-as-sdk';
import { Args, stringToBytes } from '@massalabs/as-types';
import { setOf } from '@massalabs/massa-as-sdk/assembly/std/storage';
import { Args } from '@massalabs/as-types';

const CONSTRUCTOR = 'constructor';
const PROTO_KEY = 'protoMassa';

/**
* This function deploys and calls the constructor function of the deployed smart contract.
Expand All @@ -23,7 +21,7 @@ const PROTO_KEY = 'protoMassa';
export function main(_: StaticArray<u8>): StaticArray<u8> {
let masterKey = new StaticArray<u8>(1);
masterKey[0] = 0x00;
let protoKey = stringToBytes(PROTO_KEY);

if (!hasOpKey(masterKey)) {
return [];
}
Expand Down
2 changes: 1 addition & 1 deletion packages/sc-deployer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"license": "ISC",
"dependencies": {
"@massalabs/as-types": "^2.0.0",
"@massalabs/massa-as-sdk": "^2.5.2",
"@massalabs/massa-as-sdk": "^2.5.4",
"@massalabs/massa-sc-compiler": "^0.1.0",
"@massalabs/massa-web3": "^3.0.2",
"@types/node": "^18.11.10",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const publicApi = getEnvVariable('JSON_RPC_URL_PUBLIC');
const secretKey = getEnvVariable('WALLET_SECRET_KEY');
// Define deployment parameters
const chainId = CHAIN_ID.BuildNet; // Choose the chain ID corresponding to the network you want to deploy to
const maxGas = MAX_GAS_DEPLOYMENT; // Maximum gas to be used for deployment. Default is the maximum gas allowed for deployment
const maxGas = MAX_GAS_DEPLOYMENT; // Gas for deployment Default is the maximum gas allowed for deployment
const fees = 0n; // Fees to be paid for deployment. Default is 0
const waitFirstEvent = true;

Expand Down

0 comments on commit 3503e6a

Please sign in to comment.