You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using gloads to load scratch space values from transactions in a group does not work in dryrun mode, it always return 0.
Your environment
Steps to reproduce
Use the following TEAL sources:
The intention is to save the group index in slot 254 for TX0, TX1 and TX2.
TX3 must check saved values with gloads.
#pragma version 5
txn GroupIndex
int 3
==
bnz checkgload
txn GroupIndex
store 254
b exit
checkgload:
int 0
gloads 254
int 0
==
int 1
gloads 254
int 1
==
int 2
gloads 254
int 2
==
&&
assert
exit:
int 1
Subject of the issue
Using
gloads
to load scratch space values from transactions in a group does not work in dryrun mode, it always return 0.Your environment
Steps to reproduce
The intention is to save the group index in slot 254 for TX0, TX1 and TX2.
TX3 must check saved values with
gloads
.Clear program is trivial:
Expected behaviour
gloads
should load 0, 1 and 2, not zero.Actual behaviour
It always seems to retrieve zero value.
Dryrun dump follows:
Thanks.
The text was updated successfully, but these errors were encountered: