pull/4543/head
Hadrien Croubois 1 year ago
parent 6cf21a5813
commit b5c7a3dbee
No known key found for this signature in database
GPG Key ID: B53810561A746A06
  1. 4
      scripts/solhint-custom/index.js

@ -91,7 +91,9 @@ module.exports = [
);
node?.subNodes
?.filter(({ type, name }) => type === 'CustomErrorDefinition' && !domains.find(domain => name.startsWith(domain)))
?.filter(
({ type, name }) => type === 'CustomErrorDefinition' && !domains.find(domain => name.startsWith(domain)),
)
.forEach(customError => this.error(customError, 'Custom errors should contain corresponding domain prefix'));
}

Loading…
Cancel
Save