Skip to content

Cannot Get Events from harmony-js/core #2

Description

@mattlockyer

HarmonyERC20.sol extends from Open Zepplin contracts.

Several events are emitted to the blockchain when contracts are deployed. These are written directly into the Truffle artifacts. Other events should be retrievable by connecting to the web socket endpoint via:

    const harmony = new Harmony(`ws://localhost:9800`, {
        chainType: ChainType.Harmony, 
        chainId: ChainID.HmyTestnet,
    })

And using the following JS:

    contract.events.Transfer({
        fromBlock: 0
    }, function(error, event){ console.log(event); })

However no events are emitted and this callback method is never called (nor are the promise based .on methods)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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