chainapsis / keplr-wallet

The most powerful wallet for the Cosmos ecosystem and the Interchain
https://www.keplr.app
Other
763 stars 457 forks source link

keplr-wallet/types OfflineDirectSigner incompatible with cosmjs-types v0.9.0 due to BigInt/Long changes #1014

Open bretheren opened 9 months ago

bretheren commented 9 months ago

cosmjs-types v0.9.0 has had some changes that impacts the OfflineDirectSigner. Keplr uses type Long for accountNumber whereas cosmjs-type v0.9.0 uses bigint.

This results in the following error currently:

Types of property 'accountNumber' are incompatible.
Type 'bigint' is not assignable to type 'Long'.
mintthemoon commented 1 month ago

Any progress on this issue? I spent a good deal of time this week debugging the type error I encountered following the official Keplr docs on integration with CosmJS. Managed to get it working, but I would love to integrate Keplr without clunky workarounds.

The accountNumber type in SignDoc changing from Long to bigint is all that needs to be updated here as far as I can tell.