I am trying to store strings in a contract but need the fixed size or string32 which is now bytes32. I understand that bytes32 is binary data but can not seem to convert a string in javascript to a byte array to call my smart contract. What is the best way in js to covert between the two?
0 ·
Comments