Function: rawBytesToBytes32()
function rawBytesToBytes32(bytes): Bytes32;
Defined in: packages/overcast-core/src/utils.ts:109
Encode exactly 32 raw bytes as a Bytes32, throwing on any other length. The width is checked rather than assumed: this is the seam a layer's OvercastUtils.toBytes32 returns through, and a short slot would shift every following field of a serialized struct.
Parameters
| Parameter | Type |
|---|---|
bytes | Uint8Array |