contract TypeConversion{
uint96 data = 5;
bytes32 b = bytes32(data);
}
It gives error:
Explicit type conversion not allowed from "uint96" to "bytes32".
What will be the better way to convert integers to a string in solidity?
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.
Sign up to join this community
uint95
?What will be the better way to convert integers to a string in solidity?
- that is a different question than the question in the title.