Resolve "feat(Primitives): Have Bytes Primitive extends Uint8Array (if possible)"
This commit is contained in:
@@ -66,7 +66,7 @@ export class HDPrivateNode {
|
||||
public static fromSeed(seed: Uint8Array | string): HDPrivateNode {
|
||||
// Cast from hex if a string was provided.
|
||||
if (typeof seed === 'string') {
|
||||
seed = Bytes.fromHex(seed).toBytes();
|
||||
seed = Bytes.fromHex(seed);
|
||||
}
|
||||
|
||||
// If the seed is not 64 bytes, throw an error.
|
||||
|
||||
Reference in New Issue
Block a user