Skip to content

Commit 2032311

Browse files
committed
js: exclude header defines from constants
1 parent 5afdad3 commit 2032311

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/wasm_package/src/const.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ export const EC_XONLY_PUBLIC_KEY_LEN = 32;
8484
export const HASH160_LEN = 20;
8585
export const HMAC_SHA256_LEN = 32;
8686
export const HMAC_SHA512_LEN = 64;
87-
export const LIBWALLY_CORE_PSBT_MEMBERS_H = 1;
8887
export const PBKDF2_HMAC_SHA256_LEN = 32;
8988
export const PBKDF2_HMAC_SHA512_LEN = 64;
9089
export const RIPEMD160_LEN = 20;

tools/update_wasm_package.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Extract WALLY_ constants into const.js
44
(echo '// AUTOGENERATED by update_wasm_package.sh' \
55
&& egrep -r '#define [^ (]* ' include/*.h \
6+
| grep -v '#define LIBWALLY_CORE_' \
67
| grep -v '#define OP_' \
78
| sed -r 's~.*#define ([^ ]*) *~export const \1 = ~; s~( /\*)| *$~;\1~' \
89
| LC_ALL=C sort \

0 commit comments

Comments
 (0)