I have known how to convert a string
to bytes32
. But if the string length is longer than 32
, the rest of the string
will be truncated. So how to convert a string
to bytes32[]
array?
[Ethereum] How to convert a string to bytes32 array
arraysbytes32soliditystring
Best Answer
I have coded this contract successfully.Below is the contract: