Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v0.3.1: send tokens to the node account instead of just account #12

Merged
merged 12 commits into from
May 10, 2019
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