Skip to content

Commit

Permalink
mint at user defined scriptHash
Browse files Browse the repository at this point in the history
  • Loading branch information
Ejhfast committed Oct 7, 2017
1 parent ec906b6 commit 8a52d07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7988,7 +7988,7 @@ var doMintTokens = exports.doMintTokens = function doMintTokens(net, scriptHash,
return getBalance(net, account.address).then(function (balances) {
// TODO: maybe have transactions handle this construction?
var intents = [{ assetId: tx.ASSETS['NEO'], value: neo, scriptHash: scriptHash }];
var invoke = { operation: 'mintTokens', scriptHash: RPX };
var invoke = { operation: 'mintTokens', scriptHash: scriptHash };
var unsignedTx = tx.create.invocation(account.publicKeyEncoded, balances, intents, invoke, gasCost, { version: 1 });
var signedTx = tx.signTransaction(unsignedTx, account.privateKey);
var hexTx = tx.serializeTransaction(signedTx);
Expand Down

0 comments on commit 8a52d07

Please sign in to comment.