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

Feature Request: Support broadcasting messages as test users from the test host #185

Closed
chatton opened this issue Jun 30, 2022 · 0 comments · Fixed by #186
Closed

Feature Request: Support broadcasting messages as test users from the test host #185

chatton opened this issue Jun 30, 2022 · 0 comments · Fixed by #186
Assignees

Comments

@chatton
Copy link
Contributor

chatton commented Jun 30, 2022

From the tests, I would like to be able to broadcast arbitrary messages as users created in the tests themselves.

In issue #172 I found myself needing the private key of the users in order to sign transactions, however since then I found out that it should be possible to broadcast messages using this function.

If we use this function, I would no longer need private keys exposed (although I suspect it would still be useful in certain situations)

When attempting to utilize this function, I ran into a few issues.

  • BroadCastTx signs the transactions by reading from the specified keyring, which means the test host needs access to valid keyring for this to work.
  • A tx.Factory needs to be configured based on the chains.
  • A client.Context needs to be configured based on user/chain/test environment.
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 a pull request may close this issue.

1 participant