Gno: An interpreted, stack-based Go virtual machine to build succinct and composable apps + Gno.land: a blockchain for timeless code and fair open-source
Note that this does not occur if c is initialized differently:
package main
func main() {
c := []byte{'A'}
println(&c[0])
}
This seems to be related to #1569 where the behavior changes depending how the byte slice was initialized. However, I think that the solution here may be to account for the DataByteValue type in TypedValue's ProtectedSprint method.
A panic occurs when trying to print a pointer to a single byte value using
println
.This can be produced by running:
Trace:
Note that this does not occur if
c
is initialized differently:This seems to be related to #1569 where the behavior changes depending how the byte slice was initialized. However, I think that the solution here may be to account for the
DataByteValue
type inTypedValue
'sProtectedSprint
method.