I am calling a solidity function which returns a byte4 value through web3, which returns the current string:
0x15fb397c00000000000000000000000000000000000000000000000000000000 I need to convert this string to bytes4. Will truncating it be a "safe" way?