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
Got error when using substring3 opcode. But work well with the Algorand goal command line.
Expected Behavior
Run substring3 successful
Current Behavior
Return error when running substring3
Error
Error: RUNTIME_ERR1003: Type of data is incorrect. Expected byte[] but got bigint at line 14
Possible Solution
Steps to Reproduce
TEAL contract
This contract uses teal version 5.
Filename: string.teal.
#pragma version 5
int 0
txn ApplicationID
==
bnz on_creation
byte "result"
byte "this_is_not_bug"
int 0
int 1
substring3
app_global_put
int 1
return
on_creation:
int 1
return
Describe the bug
Got error when using
substring3
opcode. But work well with the Algorandgoal
command line.Expected Behavior
Run substring3 successful
Current Behavior
Return error when running substring3
Error
Possible Solution
Steps to Reproduce
This contract uses teal version 5.
Filename: string.teal.
Environment
Thanks for your support! ❤️
The text was updated successfully, but these errors were encountered: