Hi, I'm creating a contract using solidity and wanted to pass SHA256 hash as a param. When I use Bytes32 it's not able to fit the value in the datatype. Wondering if there is any other data type which can be used ?
Code snippet-
mapping(bytes32 => uint) private mystruct;
function SetHash(bytes32 hash,uint i) //hash = SHA256() hash
{
mystruct[sha3(hash)] = i; //Error
}
0 ·
Comments