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

You are viewing a single comment's thread from:

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

in neo •  7 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

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!