From 7d849e2b975582f91837ed31e3305a8a79edc4a3 Mon Sep 17 00:00:00 2001 From: EvgeniPirianov Date: Mon, 14 Nov 2022 16:17:43 +0200 Subject: [PATCH] fixed interface definition, upgraded version --- package.json | 2 +- src/interfaces/IContractData.ts | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 7a2d9e14..a48df1bf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@massalabs/massa-web3", - "version": "1.10.10", + "version": "1.10.11", "description": "massa's web3 sdk client", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/interfaces/IContractData.ts b/src/interfaces/IContractData.ts index 7a48fb50..a9cb0145 100644 --- a/src/interfaces/IContractData.ts +++ b/src/interfaces/IContractData.ts @@ -5,13 +5,14 @@ export interface IContractData { maxGas: number; /// The price per unit of gas that the caller is willing to pay for the execution. gasPrice: number; - /// Extra coins that are spent by consensus and are available in the execution context of the contract. - coins: number; - /// Smart contract data as bytecode, text and base64 encoded. + /// Smart contract data as bytecode. contractDataBase64?: string; + /// Smart contract data as text. contractDataText?: string; + /// Smart contract data as base64-encoded. contractDataBinary?: Uint8Array; /// smart contract address address?: string; + /// key/value datamap that can store smart contract operational storage data datastore?: Map; }