Skip to content

Commit

Permalink
Release v0.3.1: send tokens to the node account instead of just accou…
Browse files Browse the repository at this point in the history
…nt (#12)
  • Loading branch information
dmytrostriletskyi authored May 10, 2019
1 parent b956c3c commit 1156f5d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lambdas/transferTokensLambdaHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ const remme_from_address = remme_from.token._remmeAccount._address;
exports.transferTokensLambdaHandler = async (event) => {

const remme_to = new Remme.Client({
accountConfig: { privateKeyHex, type: 1 },
networkConfig: {
nodeAddress: nodeAddress + ":8080"
}
});

const remme_to_address = remme_to.token._remmeAccount._address;
const remme_to_address = remme_to.account.address;

const transactionResult = await remme_from.token.transfer(remme_to.token._remmeAccount._address, amountOfTokensToSend);
const transactionResult = await remme_from.token.transfer(remme_to_address, amountOfTokensToSend);
const batchIdentifier = transactionResult.data.id;

console.log(
Expand Down

0 comments on commit 1156f5d

Please sign in to comment.