getBytes
Read a Bytes
Accepts two on-wire shapes — both come from the same CompactTypeBytes.fromValue getter, depending on whether the runtime pre-padded the value:
ByteArray— returned when the runtime wrapped the value in aUint8Array(typical when the chain stored a shorter value and the runtime padded it to length N).List<*>ofBigInteger/Long/Int— returned when the underlying__nativeContractQueryJSON arrived as a plainArray<number>and the runtime passed it through unchanged (theval.length == this.lengthbranch ofCompactTypeBytes.fromValue).
Each list element must fit in 0..255; otherwise this is a schema mismatch.