Skip to content

Commit 5656a75

Browse files
committed
rm gh action and fix nit comment
1 parent edc2021 commit 5656a75

File tree

2 files changed

+4
-40
lines changed

2 files changed

+4
-40
lines changed

.github/workflows/pkg_pr_release.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

src/lib/util/base58.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { versionBytes } from '../../bindings/crypto/constants.js';
2-
import { Binable, withVersionNumber } from '../../bindings/lib/binable.js';
31
import { sha256 } from '@noble/hashes/sha256';
42
import { changeBase } from '../../bindings/crypto/bigint-helpers.js';
3+
import { versionBytes } from '../../bindings/crypto/constants.js';
4+
import { Binable, withVersionNumber } from '../../bindings/lib/binable.js';
55

6-
export { toBase58Check, fromBase58Check, base58, withBase58, fieldEncodings, Base58, alphabet };
6+
export { Base58, alphabet, base58, fieldEncodings, fromBase58Check, toBase58Check, withBase58 };
77

88
const alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'.split('');
99
let inverseAlphabet: Record<string, number> = {};
@@ -62,7 +62,7 @@ function fromBase58(base58: string) {
6262
}
6363

6464
function computeChecksum(input: number[] | Uint8Array) {
65-
let inputBytes = input instanceof Uint8Array ? input : new Uint8Array(input);
65+
let inputBytes = new Uint8Array(input);
6666
let hash1 = sha256.create();
6767
hash1.update(inputBytes);
6868
let hash2 = sha256.create();

0 commit comments

Comments
 (0)