From 7e18104414a30b9d527f604d360a18b4a93d344f Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Thu, 8 Oct 2020 19:36:51 -0400 Subject: [PATCH] Update demo.cpp for new tuple code --- lightning-c-bindings/demo.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lightning-c-bindings/demo.cpp b/lightning-c-bindings/demo.cpp index acb73a4de..ee1cedf17 100644 --- a/lightning-c-bindings/demo.cpp +++ b/lightning-c-bindings/demo.cpp @@ -550,9 +550,7 @@ int main() { LDKSecretKey sk; memset(&sk, 42, 32); LDKC2Tuple_u64u64Z kdiv_params; - kdiv_params.a = (uint64_t*) malloc(8); - kdiv_params.b = (uint64_t*) malloc(8); - *kdiv_params.a = 42; - *kdiv_params.b = 42; + kdiv_params.a = 42; + kdiv_params.b = 42; LDK::InMemoryChannelKeys keys = InMemoryChannelKeys_new(sk, sk, sk, sk, sk, random_bytes, 42, kdiv_params); } -- 2.39.5