-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix typo (or wrong implementation) in 'runtime/src/ctx.ts' #798
Conversation
I think this implementation doesn't return the real result as algod sandbox (not tested yet) If so, this test also needs a change. https://github.com/scale-it/algo-builder/blob/2bcef8f611b349dfb8dc3542ed2f0a129a0c405c/packages/runtime/test/src/interpreter/opcode-list.ts#L3001-L3011
This implementation should be right since |
@thdailong Sorry that I made typo. I was trying to say Because the |
@PabloLION I have a check on that test and the application ID of the current app is 1828. |
Then I'm making an edge case here. I'll try to offer a MRE next week and reopen this. I close it for now. |
I've finished the MRE here run During which, I noticed that
Should I make a new fix-typo PR on this? |
Thanks for your suggestion. I am on the way find out why this error exist. |
@thdailong So the current version is at least incorrect👍. With the version of my PR, my MRE worked as intended (tho the test in this repo fails). I tried to add a commit with |
@PabloLION After, I assert the code carefully and check the source code. It is great to have person like contribute to our code. I will close this PR and create a new PR with that PR have update test. You can check: PR |
58c88ec
to
48b58b5
Compare
48b58b5
to
9859c0f
Compare
I think this implementation doesn't return the same result as algod sandbox (not tested yet) If so, these related tests also needs a change.
algo-builder/packages/runtime/test/src/interpreter/opcode-list.ts
Lines 2989 to 3011 in 2bcef8f
In both pyteal doc and algorand doc says that
global CallerApplicationID
returnsBut the current implementation of
global CallerApplicationID
seems to return a sameuint64
as theglobal CurrentApplicationID
TODO
Potential followups