Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-p committed Oct 20, 2024
1 parent d994d76 commit a00dd65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/lsig_with_app/lsig_with_app.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion tests/templates.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});
Expand Down

0 comments on commit a00dd65

Please sign in to comment.