You are viewing a single comment's thread from:

RE: Neon-js: Calling a transaction to store values in a smart contract

in #neo7 years ago

The code above sends 1 Gas to the smart contract each time. After some comments in discord the intent should look like this:

const intents: Neon.tx.TransactionOutput[] = [{
assetId: Neon.CONST.ASSET_ID.GAS,
value: new Neon.u.Fixed8(0.00000001),
scriptHash: account.scriptHash
}];

It sends the minuman amount of Gas to itself, so the smartcontract gets executed