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 bug highlights a difference between gno and go. Here is an example
package main
import"crypto/sha256"funcmain() {
println(sha256.Sum256([]byte("x"))[:])
}
This will execute fine as gno code, but running it as go code yields invalid operation: sha256.Sum256([]byte("x")) (value of type [32]byte) (slice of unaddressable value)
This bug highlights a difference between gno and go. Here is an example
This will execute fine as gno code, but running it as go code yields
invalid operation: sha256.Sum256([]byte("x")) (value of type [32]byte) (slice of unaddressable value)
https://goplay.tools/snippet/MxwoBhtYZzz
The text was updated successfully, but these errors were encountered: