Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Different Applications pass assert #127

Open
kylebeee opened this issue Mar 8, 2025 · 0 comments
Open

Different Applications pass assert #127

kylebeee opened this issue Mar 8, 2025 · 0 comments

Comments

@kylebeee
Copy link

kylebeee commented Mar 8, 2025

Subject of the issue

Given two different Applications (lets say appId id is 10 & otherApp id 20) this assert is passing

const txn = gtxn.Transaction(i)
assert(txn.appId === otherApp, 'wrong app id');

if you get more granular and do something like

assert(txn.appId.id === otherApp.id, 'wrong app id');

the assert will fail like it should.

Your environment

puya-ts@1.0.0-beta.38

Steps to reproduce

  1. assert equality of two different Applications

Expected behaviour

In my opinion, this should fail given the applications are not the same

Actual behaviour

It currently passes the assert

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant