hedera-mirror-node
hedera-mirror-node copied to clipboard
Remove `ContractReadFunctions` enum from `ContractCallServicePrecompileTest`
Description:
This PR aims to partially refactor ContractCallServiceTest
by removing ContractReadFunctions
enum.
A new abstract class is implemented having all of the needed common utilities. Temporarily it extends ContractCallTestSetup
, since ContractCallServicePrecompileTest
is not fully refactored and it has some dependencies to ContractCallTestSetup
.
This PR also fixes 2 issues found during the refactoring:
- Load alias of a treasury account if applicable
- Load alias of auto renew account if applicable
Related issue(s):
Related to #8451
Notes for reviewer:
Checklist
- [ ] Documented (Code comments, README, etc.)
- [x] Tested (unit, integration, etc.)