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
This code does not compile in neo-go with (SUBSTR): can't convert Array to ByteArray message You have to create new slice, which is totally fine, but may be a bit confusing. So it would be nice to support this feature if possible.
The text was updated successfully, but these errors were encountered:
This happens because subslicing is supported only for []byte via SUBSTR instruction.
There is no similar instruction for regular Arrays and the only way to support this is via loops (which can be done manually anyway).
However for your specific case, there is a REMOVE instruction, which can be wrapped in separate builtin in 2.x and possibly invoked directly after #941 .
Sometimes you need to remove element from the slice and one of the convenient ways to that is to use
append
.This code does not compile in neo-go with
(SUBSTR): can't convert Array to ByteArray
message You have to create new slice, which is totally fine, but may be a bit confusing. So it would be nice to support this feature if possible.The text was updated successfully, but these errors were encountered: