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

Add CallContract (and helper methods) for calling contracts via Metamask #79

Merged
merged 2 commits into from
Sep 4, 2022

Conversation

blevinstein
Copy link
Contributor

This PR relies on the JS hooks added in this PR: ChainSafe/game-web3gl#21

The usage pattern for handling async results isn't the best, especially for such a low-latency async call, but I've done my best to follow the SendContract pattern, and included a _waitSeconds to allow users to tune this behavior if necessary.

@KBryan KBryan merged commit 80a96ae into ChainSafe:main Sep 4, 2022
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

Successfully merging this pull request may close these issues.

2 participants