UNPKG
solhint
Version:
latest (5.2.0)
next (3.0.0-rc.8)
5.2.0
5.1.0
5.0.5
5.0.4
5.0.3
5.0.2
5.0.1
5.0.0
4.5.4
4.5.3
4.5.2
4.5.1
4.5.0
4.1.1
4.1.0
4.0.0
3.6.2
3.6.1
3.5.1
3.4.1
3.4.0
3.3.8
3.3.7
3.3.6
3.3.5
3.3.4
3.3.3
3.3.2
3.3.1
3.3.0
3.2.2
3.2.1
3.2.0
3.1.0
3.0.0
3.0.0-rc.8
3.0.0-rc.7
3.0.0-rc.6
3.0.0-rc.5
3.0.0-rc.4
3.0.0-rc.3
3.0.0-rc.2
3.0.0-rc.1
2.3.1
2.3.0
2.2.0
2.1.2
2.1.1
2.1.0
2.0.0
2.0.0-beta.2
2.0.0-beta.1
2.0.0-alpha.3
2.0.0-alpha.2
2.0.0-alpha.1
1.5.1
1.5.0
1.4.1
1.4.0
1.3.0
1.2.1
1.2.0
1.1.10
1.1.9
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.15
1.0.14
1.0.13
1.0.12
1.0.11
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Solidity Code Linter
protofire.github.io/solhint/
protofire/solhint
solhint
/
test
/
fixtures
/
best-practices
/
require-with-reason.js
6 lines
(4 loc)
•
235 B
JavaScript
View Raw
1
2
3
4
5
6
const { funcWith } =
require
(
'../../common/contract-builder'
)
module
.exports = funcWith(`
require
(!has(role, account),
"Roles: account already has role"
); role.bearer[account] =
true
; role.bearer[account] =
true
;`)