I am a beginner.

I would like to 3 mappings

I know 2 mapping looks like this:

mapping (address => mapping (address => uint256)) public allowed;

and my question is: is 3 mappings look like this ?

mapping (address => mapping (address => mapping (address => uint256))) public allowed;

anyone can answer my question I will be appreciated

1 Answer 1


This seems to be working.

But you can test it out on your own with your specific use-case in remix.

  • Please mark as answer if it fixed your problem.
    – cqx
    Aug 20, 2019 at 8:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.