pragma solidity ^0.4.18; contract Prices { mapping(bytes32 => uint) prices; uint32 version; function clear() public { version++; } // set the addresses in store function setMe(bytes32[] inst, uint[] px) public { for (uint i = 0; i < px.length; ++i) { bytes32 key = keccak256(version, inst[i] ); prices[key] = px[i]; } } }
0.4.18