From de03148c22457c5cfd95a64c6ca24ef4aab763d6 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 27 Jan 2021 18:08:23 -0500 Subject: [PATCH] Re-fix whitespace errors --- lab/minimal.h | 20 -------------------- typescript_strings.py | 6 +----- 2 files changed, 1 insertion(+), 25 deletions(-) delete mode 100644 lab/minimal.h diff --git a/lab/minimal.h b/lab/minimal.h deleted file mode 100644 index 37610007..00000000 --- a/lab/minimal.h +++ /dev/null @@ -1,20 +0,0 @@ -typedef struct LDKPublicKey { - uint8_t compressed_form[33]; -} LDKPublicKey; - -typedef struct LDKMessageSendEvent_LDKSendAcceptChannel_Body { - struct LDKPublicKey node_id; -} LDKMessageSendEvent_LDKSendAcceptChannel_Body; - -typedef struct LDKChannelKeys { - void *this_arg; - /** - * Gets the per-commitment point for a specific commitment number - * - * Note that the commitment number starts at (1 << 48) - 1 and counts backwards. - */ - struct LDKPublicKey (*get_per_commitment_point)(const void *this_arg, uint64_t idx); - void (*free)(void *this_arg); -} LDKChannelKeys; - -void ChannelDetails_set_remote_network_id(struct LDKPublicKey remote_public_key); diff --git a/typescript_strings.py b/typescript_strings.py index de8ce66a..5e008a73 100644 --- a/typescript_strings.py +++ b/typescript_strings.py @@ -286,11 +286,9 @@ import * as bindings from '../bindings' // TODO: figure out location else: return None - def wasm_import_header(self, target): if target == Target.NODEJS: return """ - import * as fs from 'fs'; const source = fs.readFileSync('./ldk.wasm'); @@ -398,9 +396,7 @@ const decodeString = (stringPointer, free = true) => { return result; }; - - - """ +""" return '' def init_str(self): -- 2.30.2