cast-to-bytes32 - Right-pads hex data to 32 bytes.
cast to-bytes32
[options] bytes
Right-pads hex data to 32 bytes.
Note that this command is for padding a byte string only. If you're looking to format a Solidity string literal into bytes32
, use format-bytes32-string instead.
{{#include common-options.md}}