Skip to content

Instantly share code, notes, and snippets.

@iwasaki-kenta
Created July 3, 2019 16:03
Show Gist options
  • Save iwasaki-kenta/0ef3e8a88c8f7478691cc151fbe6b89f to your computer and use it in GitHub Desktop.
Save iwasaki-kenta/0ef3e8a88c8f7478691cc151fbe6b89f to your computer and use it in GitHub Desktop.
await client.pollConsensus({
onRoundEnded: msg => {
(async () => {
await contract.fetchAndPopulateMemoryPages();
console.log("Chat logs updated:", contract.test('get_messages', BigInt(0)));
})();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment