pragma solidity ^0.4.21; contract IterateContract { bytes32[] keys; mapping(bytes32 => bytes32) mapKeyToValue; function map(bytes32 _key, bytes32 _value) private { keys.push(_key); mapKeyToValue[_key] = _value; } // function iterate() view external returns(bytes32[]){ // bytes32[] memory iteration = new bytes32[](keys.length); // for (uint i = 0; i < keys.length; i++) { // iteration.push(keys[i]); // } // } }
0.4.18