Skip to content

Commit 043b8a0

Browse files
committed
add interpolated code to tx code placeholder
1 parent 5f0adcd commit 043b8a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/AutoTemplatePopup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ const AutoTemplatePopup: React.FC<{
147147
setProcessing(true);
148148
// TODO: this is where a function call to the template util can return an interpolated string for the code text
149149
// const res = await mutator.createTransactionTemplate(transactionTemplates[selectedTxTemplate], name)
150-
const res = await mutator.createTransactionTemplate(codeSnippet, name)
150+
const res = await mutator.createTransactionTemplate(getInterpolatedTemplate(codeSnippet), name)
151151
navigate(`/${projectPath}?type=tx&id=${res.data?.createTransactionTemplate?.id}&storage=${selectedResourceAccount || 'none'}`)
152152
setProcessing(false);
153153
triggerClose(null);

0 commit comments

Comments
 (0)