diff --git a/examples/lsig_with_app/lsig_with_app.test.ts b/examples/lsig_with_app/lsig_with_app.test.ts index 091d0370c..5e23c80ce 100644 --- a/examples/lsig_with_app/lsig_with_app.test.ts +++ b/examples/lsig_with_app/lsig_with_app.test.ts @@ -11,7 +11,7 @@ algokit.Config.configure({ populateAppCallResources: true }); async function getLsigAccount(algod: algosdk.Algodv2, appID: bigint, tealTemplate: string) { // Replace the template variable in the lsig TEAL - const teal = tealTemplate.replace('TMPL_APP_ID', `0x${appID.toString(16).padStart(16, '0')}`); + const teal = tealTemplate.replace('TMPL_APP_ID', appID.toString()); // Compile the TEAL const result = await algod.compile(Buffer.from(teal)).do(); diff --git a/tests/templates.test.ts b/tests/templates.test.ts index db6adc20e..77f348505 100644 --- a/tests/templates.test.ts +++ b/tests/templates.test.ts @@ -78,7 +78,7 @@ describe('Template Variables', function () { const offsetPc = pc - cblocksOffset; - const sourceInfo = arc56.sourceInfo.approval.find((s) => s.cblocksPcOffset?.includes(offsetPc)); + const sourceInfo = arc56.sourceInfo.approval.sourceInfo.find((s) => s.pc?.includes(offsetPc)); expect(sourceInfo?.errorMessage).toBe('this is an error'); }); });