Resolve "feat(Primitives): Have Bytes Primitive extends Uint8Array (if possible)"

This commit is contained in:
devperate
2025-04-28 02:49:25 +00:00
committed by Jim Hamill
parent 1d5e3131c8
commit d4398439c7
19 changed files with 296 additions and 269 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ import {
* console.log(script.toHex());
*
* // Output as bytecode.
* console.log(script.toBytes());
* console.log(script);
* ```
*/
export class Script {
@@ -177,7 +177,7 @@ export class Script {
*/
public static fromHex(hex: string): Script {
// Return new Script entity constructed from the binary.
return this.fromBytes(Bytes.fromHex(hex).toBytes());
return this.fromBytes(Bytes.fromHex(hex));
}
/**