Skip to main content

Initial Storage

Define the initial storage​

const { Contract } = require('@tezwell/smartts-sdk');

const contract = new Contract().setStorage(Nat(0));

Specify the storage type​

const { Contract } = require('@tezwell/smartts-sdk');

const contract = new Contract().setStorageType(TNat());