[wip] code cleanups

This commit is contained in:
2022-11-06 12:24:49 -07:00
parent 127be10d03
commit 993ae4261b
+2
View File
@@ -8,6 +8,7 @@ import * as rlp from './jex_include/local-vanillae-0.1.0/dist/rlp.js';
import * as ser from './jex_include/local-vanillae-0.1.0/dist/ser.js'; import * as ser from './jex_include/local-vanillae-0.1.0/dist/ser.js';
// TODO: move this to rlp library
function deepeq(dd1: rlp.decoded_data, dd2: rlp.decoded_data): boolean { function deepeq(dd1: rlp.decoded_data, dd2: rlp.decoded_data): boolean {
// if both are Uint8Arrays // if both are Uint8Arrays
if ((dd1 instanceof Uint8Array) && (dd2 instanceof Uint8Array)) { if ((dd1 instanceof Uint8Array) && (dd2 instanceof Uint8Array)) {
@@ -219,4 +220,5 @@ function main(): void {
document.getElementById('tx-go')!.onclick = tx_tests; document.getElementById('tx-go')!.onclick = tx_tests;
} }
main(); main();