Add fromCashASM function

This commit is contained in:
Jim Hamill
2025-04-22 01:12:34 +00:00
parent eb3fbaefbe
commit 2e052e5081
2 changed files with 48 additions and 11 deletions
@@ -595,6 +595,15 @@ export const script = {
models: [''],
callback: (args: [string]) => Script.fromASM(...args),
},
{
label: 'From CashASM',
inputs: ['CashASM'],
models: [
'// Script evaluations are also supported.\n<$(<"evaluateThisFirst"> OP_SHA256)> OP_SHA256',
],
callback: (args: [string]) => Script.fromCashASM(...args),
extendedInput: true,
},
{
label: 'From Hex',
inputs: ['Hex'],