Add Typedoc to fromCashASM function

This commit is contained in:
Jim Hamill
2025-04-22 03:49:45 +00:00
parent d6f5443631
commit 87b3070931
2 changed files with 17 additions and 4 deletions
+10
View File
@@ -115,6 +115,16 @@ export class Script {
return new this(assembleResult.bytecode);
}
/**
* Create a Script Entity from the given CashASM String.
*
* @param cashASM String of CashASM to compile.
* @param data AddressData to pass to the CashASM compiler
*
* @throws {Error} If script cannot be decoded.
*
* @returns The created Script Entity.
*/
public static fromCashASM(
cashASM: string,
data?: Record<string, Uint8Array>,