osmosis-labs / osmojs

OsmosJS makes it easy to compose and broadcast Osmosis and Cosmos messages
https://cosmology.zone/products/osmojs
Apache License 2.0
64 stars 32 forks source link

Type URL '/ibc.applications.transfer.v1.MsgTransfer' does not exist in the Amino message type register. #69

Closed loxator closed 1 year ago

loxator commented 1 year ago

Hello,

I am trying to signAndBroadcast an IBC Transfer using /ibc.applications.transfer.v1.MsgTransfer, this works ok when using a directSigner, but when trying through a Ledger Nano using ledger-amino I can see in the code that it tries to call signAmino, which tries to find '/ibc.applications.transfer.v1.MsgTransfer, in aminoTypes.

However, while creating the client, I have no way of adding this as the constructor just spreads the default values as can be seen here.

Could you explain why is that? Should I make the Ledger signer as Direct as well? Thank you for your help!

loxator commented 1 year ago

Managed to get a signed transaction by initializing a custom StargateClient as shown here - https://github.com/osmosis-labs/osmojs/tree/main/packages/osmojs#advanced-usage

But RPC is throwing the following now:

image

Not sure what's going on , fwiw, I get these exact numbers while signing on my Ledger device