The test suite included to verify HIP-1340/EIP-7702 behavior is partially implemented. That is, it asserts the expected conditions only using Consensus Node. In particular, checks for eth_getCode and eth_getStorageAt are missing.
Once both MN and the JSON-RPC Relay include support for HIP-1340, these checks should be enabled.
These checks are already commented out using the // TODO(pectra): label. To enable them, we just need to uncomment the expect checks (they already have the expected value). For reference, 11 out of 16 tests need to be changed to enable MM+Relay checks.
In addition to that, we also need to address the following gaps in test asserts:
should replace existing delegation indicator when a second authorization transaction is sent - no explicit assertion that a call to the previous contract path incurs cold account access gas (2600).
should authorize delegation of an existing account when exact gas is sent - does not explicitly assert detailed gas accounting equivalence against Ethereum beyond that exact-gas success check.
should store delegation designator via type 4 transaction to ... - expand test to cover the following flow: Alice signs a delegation for a type-4 transaction, and Bob (with enough HBAR) submits it to transfer HBAR to Charlie.
The transaction should succeed, Charlie should receive HBAR, Bob should pay gas, and logs should show Bob as sender with Alice’s delegation applied correctly.