Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant