hedera-services icon indicating copy to clipboard operation
hedera-services copied to clipboard

refactor: Provide `isSelector` method for matching system contracts' function selectors

Open stoyanov-st opened this issue 6 months ago • 8 comments

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.)

stoyanov-st avatar Aug 06 '24 13:08 stoyanov-st