Add Typedoc to fromCashASM function
This commit is contained in:
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user