Solhint

Solhint

Community Analyzer

Enforce named parameters for function calls with 4 or more arguments. This rule may have some false positives SOLHINT-W1023

Style
Minor

Enforce named parameters for function calls with 4 or more arguments. This rule may have some false positives

Bad Practice

  1. Function call with four UNNAMED parameters (default 4)
functionName(_senderAddress, 1e18, _tokenAddress, _receiverAddress )

Recommended

  1. Function call with two UNNAMED parameters (default is 4)
functionName('0xA81705c8C247C413a19A244938ae7f4A0393944e', 1e18)
  1. Function call with two NAMED parameters
functionName({ sender: '0xA81705c8C247C413a19A244938ae7f4A0393944e', amount: 1e18})
  1. Function call with four NAMED parameters
functionName({ sender: _senderAddress, amount: 1e18, token: _tokenAddress, receiver: _receiverAddress })

Learn more

func-named-parameters on Solhint's documentation.