warning | layout | title |
---|---|---|
This is a dynamically generated file. Do not edit manually. |
default |
named-parameters-mapping | Solhint |
Solidity v0.8.18 introduced named parameters on the mappings definition.
This rule accepts a string option of rule severity. Must be one of "error", "warn", "off". Defaults to warn.
{
"rules": {
"named-parameters-mapping": "warn"
}
}
mapping(string name => uint256 balance) public users;
To enter owner token balance, the main key "owner" enters another mapping which its key is "token" to get its "balance"
mapping(address owner => mapping(address token => uint256 balance)) public tokenBalances;
mapping(address owner => mapping(address => uint256)) public tokenBalances;
mapping(address owner => mapping(address token => uint256)) public tokenBalances;
mapping(address owner => mapping(address => uint256 balance)) public tokenBalances;
mapping(address => uint256)) public tokenBalances;
mapping(address token => uint256)) public tokenBalances;
mapping(address => uint256 balance)) public tokenBalances;
mapping(address => mapping(address token => uint256 balance)) public tokenBalances;
This rule was introduced in Solhint 3.4.0