1.0.0 • Published 1 year ago
solhint-plugin-numcast v1.0.0
solhint-plugin-numcast
solhint plugin for detecting overflows in numeric (uint/int) casts. It helps avoiding low level numeric casts which can lead to silent overflows.
Installation
Available on npm:
npm install solhint-plugin-numcast --save-dev
Usage
Enable the plugin in your project's .solhint.json
:
{
"extends": "solhint:recommended",
"plugins": ["numcast"],
"rules": {
"numcast/safe-cast": "error"
},
}
1.0.0
1 year ago