mapping
#1615
Replies: 1 comment
-
Yes they are both valid. There is no definitive order (in data types) for you to follow, you just arrange them however works well for you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
// this is valid
mapping(string => uint256) public nameToFavoriteNumber
// but is this valid?
mapping( uint256 => string) public favoriteNumberToName
//can anyone help????
Beta Was this translation helpful? Give feedback.
All reactions