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

Adapt randdrop UI to support Injective tx signing #16

Open
kaisbaccour opened this issue Dec 11, 2023 · 0 comments
Open

Adapt randdrop UI to support Injective tx signing #16

kaisbaccour opened this issue Dec 11, 2023 · 0 comments

Comments

@kaisbaccour
Copy link
Contributor

This PR has the injective addition PR
However, since injective has a different setup than most of the rest of cosmos-sdk chains there needs to be some adaptation.
querying the injective contract works fine (I can see if I won the randdrop or not), but when trying to participate, trying to prepare, sign and broadcast the transaction fails.
Error: Unsupported type injective.types.v1beta1.EthAccount
The way to solve it is to use @injectivelabs/sdk-ts instead of @cosmjs/stargate
These docs provide how to use the injective library https://docs.ts.injective.network/transactions/transactions-cosmos
And here's an example https://github.com/InjectiveLabs/injective-ts/blob/862e7c30d96120947b056abffbd01b4f378984a1/packages/wallet-ts/src/broadcaster/MsgBroadcaster.ts#L301-L365

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

No branches or pull requests

1 participant