Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Get Events from harmony-js/core #2

Open
mattlockyer opened this issue Dec 12, 2019 · 1 comment
Open

Cannot Get Events from harmony-js/core #2

mattlockyer opened this issue Dec 12, 2019 · 1 comment

Comments

@mattlockyer
Copy link
Contributor

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)

@neeboo
Copy link

neeboo commented Dec 17, 2019

Events are not support by current blockchain vm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants