We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Nil slice iteration (no-op) looks natural in GO but did not work for me in the contract.
func hi(t []int) { for i, replica := range t { storage.Put(ctx, []byte{byte(i)}, replica) } }
Lead to at instruction 4754 (SIZE): invalid conversion: Null/ByteString if i pass nil to Invoker. NOTE: I did not deploy the contract, just tested it in neofs-contracts: https://github.com/nspcc-dev/neofs-contract/blob/a8d5e001a2e5a552676eecd40ef78629ecdfafa2/tests/container_test.go Maybe that is important.
at instruction 4754 (SIZE): invalid conversion: Null/ByteString
nil
Invoker
Just skipping for.
for
Change compiler code?
Try to compile and call the code from Current Behavior.
Current Behavior
nspcc-dev/neofs-contract#438
Not sure.
github.com/nspcc-dev/neo-go v0.106.3
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Nil slice iteration (no-op) looks natural in GO but did not work for me in the contract.
Current Behavior
Lead to
at instruction 4754 (SIZE): invalid conversion: Null/ByteString
if i passnil
toInvoker
. NOTE: I did not deploy the contract, just tested it in neofs-contracts: https://github.com/nspcc-dev/neofs-contract/blob/a8d5e001a2e5a552676eecd40ef78629ecdfafa2/tests/container_test.goMaybe that is important.
Expected Behavior
Just skipping
for
.Possible Solution
Change compiler code?
Steps to Reproduce
Try to compile and call the code from
Current Behavior
.Context
nspcc-dev/neofs-contract#438
Regression
Not sure.
Your Environment
github.com/nspcc-dev/neo-go v0.106.3
The text was updated successfully, but these errors were encountered: