Skip to content

Commit

Permalink
chore: ioctl-echo-loop voucher value that matches echo-dapp
Browse files Browse the repository at this point in the history
  • Loading branch information
mpolitzer committed Apr 15, 2024
1 parent 3d02217 commit 547ae71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sys-utils/ioctl-echo-loop/ioctl-echo-loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@ static int write_notices(cmt_rollup_t *me, unsigned count, uint32_t length, cons

static int write_vouchers(cmt_rollup_t *me, unsigned count, uint8_t destination[CMT_ADDRESS_LENGTH], uint32_t length,
const void *data) {
uint8_t value[] = {0xde, 0xad, 0xbe, 0xef};
for (unsigned i = 0; i < count; i++) {
int rc = cmt_rollup_emit_voucher(me, CMT_ADDRESS_LENGTH, destination, 0, NULL, length, data, NULL);
int rc = cmt_rollup_emit_voucher(me, CMT_ADDRESS_LENGTH, destination, sizeof(value), value, length, data, NULL);
if (rc)
return rc;
}
Expand Down

0 comments on commit 547ae71

Please sign in to comment.