Skip to content

Instantly share code, notes, and snippets.

@ryanswrt
Last active August 14, 2019 07:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanswrt/2b4af0e61fa983d93cebdb272f1bbeec to your computer and use it in GitHub Desktop.
Save ryanswrt/2b4af0e61fa983d93cebdb272f1bbeec to your computer and use it in GitHub Desktop.
client.pollConsensus({
onRoundEnded: _ => {
contract.fetchAndPopulateMemoryPages().then(_ => {
const results = contract.test(wallet, "render", BigInt(0)).logs[0];
pre.textContent = results;
contract.call(wallet, 'step', BigInt(0), BigInt(1e7), BigInt(0));
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment