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)
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:
And using the following JS:
However no events are emitted and this callback method is never called (nor are the promise based .on methods)