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

Adapt randdrop UI to support Injective tx signing #16

@kaisbaccour

Description

@kaisbaccour

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions