hedera-services
hedera-services copied to clipboard
refactor: Provide `isSelector` method for matching system contracts' function selectors
Description:
Provided isSelector
method in AbstractCallAttempt
class that takes the headlong.abi.Function
and matches is against the current call attempt.
Refactored all uses of arrays matching for selector in the system contracts to use the new method.
Reworked tests to match the new behaviour and added some more negative cases.
Related issue(s):
Fixes #14344
Notes for reviewer:
Checklist
- [ ] Documented (Code comments, README, etc.)
- [ ] Tested (unit, integration, etc.)