cast-format-bytes32-string - Formats a string into bytes32 encoding.
cast format-bytes32-string
[options] string
Formats a string into bytes32 encoding.
Note that this command is for formatting a Solidity string literal into bytes32
only. If you're looking to pad a byte string, use to-bytes32 instead.
{{#include common-options.md}}
- Turn string "hello" into bytes32 hex:
cast format-bytes32-string "hello"