Skip to content

CoreSimulatorLib.isSystemAddress always returns false, breaking EVM -> HyperCore bridge simulation #27

@bri3t

Description

@bri3t

A recent change to CoreSimulatorLib.isSystemAddress causes it to always return false, which prevents the simulator from recognizing system addresses. As a result, EVM -> HyperCore token bridges are never processed during simulation.

In the current implementation:

if (addrInt >= baseAddr && addrInt < baseAddr + 10000) {
    uint64 tokenIndex = uint64(addrInt - baseAddr);
    PrecompileLib.TokenInfo memory tokenInfo = PrecompileLib.tokenInfo(tokenIndex);
    if (addr != tokenInfo.evmContract) return false;
}
return false;

Even when addr is a valid system address, the function falls through and returns false, so no system address is ever recognized.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions