Resolve "feat(Primitives): Have Bytes Primitive extends Uint8Array (if possible)"
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user