Matthew Lally
Sep 7, 2018 · 1 min read

Hey David. What would you do to store data like the following, taken from a standard-ish ERC20 contract?

mapping(address => uint256) _balances;
mapping(address => mapping( address => uint )) _approvals;

Would you just add new mappings like these to your storage?

mapping(bytes32 => mapping( address => uint )) _balances;

mapping(bytes32 => mapping( address => mapping( address => uint ))) _approvals;

    Matthew Lally

    Written by

    Founder of Pitch Investors Live. Blockchain fan. Brit in Florida. Capoeirista and MMA hobbyist. Psychology fan. Boundary-pusher / habitual line-stepper.