hedera-mirror-node icon indicating copy to clipboard operation
hedera-mirror-node copied to clipboard

Remove `ContractReadFunctions` enum from `ContractCallServicePrecompileTest`

Open IvanKavaldzhiev opened this issue 6 months ago • 3 comments

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:

  1. Load alias of a treasury account if applicable
  2. 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.)

IvanKavaldzhiev avatar Aug 05 '24 12:08 IvanKavaldzhiev