Skip to content

Commit 2619eed

Browse files
committed
Update mocks
1 parent e83b097 commit 2619eed

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎tests/fuzz/fuzz-wire-update_fail_htlc.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ struct update_fail_htlc {
1313

1414
static void *encode(const tal_t *ctx, const struct update_fail_htlc *s)
1515
{
16-
return towire_update_fail_htlc(ctx, &s->channel_id, s->id, s->reason);
16+
return towire_update_fail_htlc(ctx, &s->channel_id, s->id, s->reason, NULL);
1717
}
1818

1919
static struct update_fail_htlc *decode(const tal_t *ctx, const void *p)
2020
{
2121
struct update_fail_htlc *s = tal(ctx, struct update_fail_htlc);
2222

23-
if (fromwire_update_fail_htlc(s, p, &s->channel_id, &s->id, &s->reason))
23+
if (fromwire_update_fail_htlc(s, p, &s->channel_id, &s->id, &s->reason, NULL))
2424
return s;
2525
return tal_free(s);
2626
}

‎tests/fuzz/fuzz-wire-update_fulfill_htlc.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ struct update_fulfill_htlc {
1212
static void *encode(const tal_t *ctx, const struct update_fulfill_htlc *s)
1313
{
1414
return towire_update_fulfill_htlc(ctx, &s->channel_id, s->id,
15-
&s->payment_preimage);
15+
&s->payment_preimage, NULL);
1616
}
1717

1818
static struct update_fulfill_htlc *decode(const tal_t *ctx, const void *p)
1919
{
2020
struct update_fulfill_htlc *s = tal(ctx, struct update_fulfill_htlc);
2121

22-
if (fromwire_update_fulfill_htlc(p, &s->channel_id, &s->id,
23-
&s->payment_preimage))
22+
if (fromwire_update_fulfill_htlc(s, p, &s->channel_id, &s->id,
23+
&s->payment_preimage, NULL))
2424
return s;
2525
return tal_free(s);
2626
}

‎wire/test/run-peer-wire.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ static struct msg_update_fulfill_htlc *fromwire_struct_update_fulfill_htlc(const
532532
{
533533
struct msg_update_fulfill_htlc *s = tal(ctx, struct msg_update_fulfill_htlc);
534534

535-
if (fromwire_update_fulfill_htlc(p,
535+
if (fromwire_update_fulfill_htlc(ctx, p,
536536
&s->channel_id,
537537
&s->id,
538538
&s->payment_preimage,

0 commit comments

Comments
 (0)