File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -75,13 +75,15 @@ module.exports = [
75
75
static ruleId = 'no-external-virtual' ;
76
76
77
77
FunctionDefinition ( node ) {
78
- // Skip constructor functions, interface definitions, and receive/fallback functions
78
+ // Skip constructor functions, interface definitions, receive/fallback functions,
79
+ // and governance/multicall functions which legitimately use external virtual
79
80
if (
80
81
node . isConstructor ||
81
82
node . parent . kind === 'interface' ||
82
83
node . name === '' || // receive/fallback functions have empty names
83
84
node . isReceiveEther ||
84
- node . isFallback
85
+ node . isFallback ||
86
+ / ^ ( u p d a t e | m u l t i c a l l ) / . test ( node . name ) // Allow external virtual for update* and multicall functions
85
87
) {
86
88
return ;
87
89
}
You can’t perform that action at this time.
0 commit comments