Skip to content

Enable MN+Relay HIP-1340/EIP-7702 checks in Hiero EVM specific tests #83

@0x-ds

Description

@0x-ds

Hiero specific test EVM test suite evm-functional-testing/test/hip-1340/hts.test.js located at present in denys/run-pectra-tests-with-hh branch has the following partially and require minor code to enable checks for eth_getCode and eth_getStorageAt that require Mirror Node and Relay to fully support Pectra update.

Changes needed

One test has TODO to be uncommented and a number of tests are using verifyDelegation() helper that needs to be updated to use similar code documented in TODO

Tests breakdown

Direct TODO re-enable
  • should return delegation designation to 0x167 when an HTS token is created
    • Re-enable:
      • const code = await provider.getCode(tokenAddress);
      • expect(code).to.be.equal(designatorFor(HTS_ADDRESS));
Indirectly impacted via verifyDelegation()
  • should transfer HTS tokens when two EOAs delegate to the same Smart Wallet and send self-sponsored transactions
  • should batch-transfer HTS tokens to multiple recipients from a delegated EOA via executeBatch
  • should revert transaction delegated to a system contract (or current renamed equivalent)
  • should no-op transaction delegated to another EOA/HAS facade
  • should prioritize HAS proxy over delegated contract methods with the same selectors
  • should batch-transfer 1 HBAR and 100 HTS tokens from a delegated EOA to another EOA via executeBatch
  • should batch-transfer 1 HBAR and 100 HTS tokens when recipient associates via delegation

Effort estimate

Overall number of tests to modify: 8
Estimated time to modify and rerun tests: ~0.5 days

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions