Skip to content

Commit

Permalink
Merge pull request #10 from DIG-Network/release/v0.0.1-alpha.11
Browse files Browse the repository at this point in the history
Release/v0.0.1 alpha.11
  • Loading branch information
MichaelTaylor3D authored Sep 19, 2024
2 parents e6cf73e + 985fff4 commit f29da93
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [0.0.1-alpha.11](https://github.com/DIG-Network/dig-incentive-server/compare/v0.0.1-alpha.10...v0.0.1-alpha.11) (2024-09-19)


### Bug Fixes

* payment hint ([20aae2d](https://github.com/DIG-Network/dig-incentive-server/commit/20aae2dad688143aa846d37080bf3c7ab87cbda3))

### [0.0.1-alpha.10](https://github.com/DIG-Network/dig-incentive-server/compare/v0.0.1-alpha.9...v0.0.1-alpha.10) (2024-09-18)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dig-incentive-server",
"version": "0.0.1-alpha.10",
"version": "0.0.1-alpha.11",
"description": "",
"type": "commonjs",
"main": "./dist/index.js",
Expand Down
4 changes: 3 additions & 1 deletion src/tasks/payouts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ const runIncentiveProgram = async (
// Create a memo for the payment, storeId for the hint for easy lookup
const { epoch: currentEpoch, round: currentRound } = ServerCoin.getCurrentEpoch();
const paymentHint = DigPeer.createPaymentHint(Buffer.from(program.storeId, "hex"));
const memo = [paymentHint, Buffer.from(`Incentive program payout for storeId: ${program.storeId}, epoch ${currentEpoch}, round ${currentRound}`, "utf-8")];
const message = Buffer.from(`Incentive program payout for storeId: ${program.storeId}, epoch ${currentEpoch}, round ${currentRound}`, "utf-8");
console.log(`Payment hint: ${paymentHint.toString("hex")} - ${message.toString('hex')}: ${message.toString("utf-8")}`);
const memo = [paymentHint, message];

await DigPeer.sendEqualBulkPayments(
program.walletName,
Expand Down

0 comments on commit f29da93

Please sign in to comment.