Skip to content

Single-line load_ref #51

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

Open
attikusfinch opened this issue Jul 1, 2024 · 2 comments
Open

Single-line load_ref #51

attikusfinch opened this issue Jul 1, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@attikusfinch
Copy link

If you put two ~load_ref in func on the same line, it will read refs from the end. In the sandbox, everything works logically correct, reading from left to right, but it creates a difference in results with the blockchain

@attikusfinch attikusfinch added the bug Something isn't working label Jul 1, 2024
@Alejandbel
Copy link
Collaborator

Could you please provide steps to reproduce?

@attikusfinch
Copy link
Author

attikusfinch commented Jun 3, 2025

ref1, ref2 = msg~load_ref(), msg~load_ref(); - on mainnet will be loaded from right to left. On sandbox a year ago it was loaded from left to right

So it for example we will send msg to contract like this:
begin_cell().storeRef(Cell1).storeRef(Cell2), and then try to load it in one line.
On mainnet we will see that ref1 = Cell2 and ref2 = Cell1, but on sandbox it worked like this: ref1 = Cell1, ref2 = Cell2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants