Fetching map values with ok
flag fails with panic
#3716
Labels
compiler
Go smart contract compiler
enhancement
Improving existing functionality
I3
Minimal impact
S4
Routine
U3
Regular
Current Behavior
Want safely check if map contains some value.
Expected Behavior
First, it panics:
at instruction 2647 (STLOC1): runtime error: index out of range [-1]
. Second, it does not work overall, why?Possible Solution
Fix panic, support safe value fetching.
Steps to Reproduce
Try to compile snippet above.
Context
nspcc-dev/neofs-contract#448
Regression
Not sure.
Your Environment
v0.106.3
The text was updated successfully, but these errors were encountered: