Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. contract Mappulator {
  2. mapping(address => int256) public BigMap;
  3. struct mapper { mapping (address => int256) map;}
  4.  
  5. function MappingCombiner(mapper map1, mapper map2){
  6. BigMap = map1.map + map2.map;
  7. }
  8. }
  9.  
  10. Internal type is not allowed for public or external functions.
  11. function MappingCombiner(mapper map1, mapper map2){
  12. ^---------^
  13.  
  14. Location has to be memory for publicly visible functions (remove the "storage" keyword).
  15. function MappingCombiner(mapper storage map1, mapper storage map2){
  16. ^-----------------^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement