noislabs / randdrop-ui

https://randdrop-ui.vercel.app
5 stars 13 forks source link

draft/add-injective #14

Closed kaisbaccour closed 11 months ago

kaisbaccour commented 12 months ago

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

vercel[bot] commented 12 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
randdrop ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 22, 2023 11:55am
randdrop-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 22, 2023 11:55am