ObsidianLabs / ConfluxStudio

An IDE to develop smart contracts on the Conflux blockchain

Home Page:https://www.obsidians.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't query events on v0.4.2

Thegaram opened this issue · comments

When I deploy the following contract using v0.4.1, I can see both events. v0.4.2, however, does not list any.

pragma solidity ^0.7.1;

contract Test {
    event A(string s);
    event B(uint256 i);

    constructor() {
        emit A("abcd");
        emit B(17);
    }

    function foo() public {
        emit B(17);
    }
}
commented

We have confirmed that querying events on v0.4.2 causes an error:

Error: {"msg":"((((((-9500 not match bigUInt) && (-9500 not equal earliest)) && (-9500 not equal latest_checkpoint)) && (-9500 not equal latest_confirmed)) && (-9500 not equal latest_state)) && (-9500 not equal latest_mined)) && (-9500 not equal undefined)","path":".fromEpoch","origin":{"fromEpoch":-9500,"toEpoch":"latest_state","address":"0x8e8a88825380018ac10ce2a886321d119398fc16","topics":["0x3990db2d31862302a685e8086b5755072a6e2b5b780af1ee81ece35ee3cd3345"]}}