Skip to content

Commit

Permalink
Merge pull request #55 from lum-network/fix-ledger-signer
Browse files Browse the repository at this point in the history
[Fix] Ledger sign mode issue
  • Loading branch information
greedyboi committed Feb 13, 2024
2 parents 71a89f2 + fde12d6 commit 4c0c24f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 20 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"@cosmostation/cosmos-client": "^0.0.5",
"@cosmostation/extension-client": "^0.1.15",
"@firebase/analytics": "^0.9.3",
"@keplr-wallet/types": "^0.12.6",
"@keplr-wallet/unit": "^0.12.58",
"@keplr-wallet/types": "^0.12.67",
"@keplr-wallet/unit": "^0.12.67",
"@leapwallet/elements": "^0.6.6",
"@lum-network/sdk-javascript": "^1.0.0-beta.2",
"@popperjs/core": "^2.11.6",
Expand Down
4 changes: 2 additions & 2 deletions src/utils/walletProviders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const getProviderFunctions = (provider: WalletProvider) => {
getOfflineSigner: (chainId: string) => {
if (provider === WalletProvider.Cosmostation) {
if (isCosmostationInstalled() && window.cosmostation?.providers?.keplr) {
return window.cosmostation.providers.keplr.getOfflineSigner(chainId);
return window.cosmostation.providers.keplr.getOfflineSignerOnlyAmino(chainId);
} else {
throw new Error(I18n.t('errors.walletProvider.notInstalled', { provider }));
}
Expand All @@ -57,7 +57,7 @@ export const getProviderFunctions = (provider: WalletProvider) => {
throw new Error(I18n.t('errors.walletProvider.notInstalled', { provider }));
}

return keplrProvider.getOfflineSigner(chainId);
return keplrProvider.getOfflineSignerOnlyAmino(chainId);
},
getKey: async (chainId: string): Promise<Key> => {
if (provider === WalletProvider.Cosmostation) {
Expand Down
25 changes: 9 additions & 16 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4325,26 +4325,19 @@
"@jridgewell/resolve-uri" "^3.1.0"
"@jridgewell/sourcemap-codec" "^1.4.14"

"@keplr-wallet/types@0.12.58":
version "0.12.58"
resolved "https://registry.yarnpkg.com/@keplr-wallet/types/-/types-0.12.58.tgz#7157b16656d04d99826323326da63b1d1507bd86"
integrity sha512-cUBpdtfn5w2m9M3Lsn69TvvA4rG9NHiTkBuFlZUoUrXTBLYimRC3M/gDwEPhFHW+Jr8HM6G7Zwphjwh1j5Fspg==
"@keplr-wallet/types@0.12.67", "@keplr-wallet/types@^0.12.67":
version "0.12.67"
resolved "https://registry.yarnpkg.com/@keplr-wallet/types/-/types-0.12.67.tgz#4ca57ad467078a28fbcdd05b052898e46be37562"
integrity sha512-HDEYOezWq//ug/R0lkOQWsaOYh3b9ECA8LN+tAA+baWMo81X9m9L63ux7NYw0QmoLxWqWrRO/T9F28+q2dw6+A==
dependencies:
long "^4.0.0"

"@keplr-wallet/types@^0.12.6":
version "0.12.6"
resolved "https://registry.yarnpkg.com/@keplr-wallet/types/-/types-0.12.6.tgz#3bb395cafab8b935d6bef32dc2202c63447ef828"
integrity sha512-Uo4rZh3bRnOq9oeisd1DqyU9dHXjdmhu5SfC9w8mNLGTy89BtMrYwvQVr8Z2iaAP51o32YjxisNlgVkhrA+P3w==
"@keplr-wallet/unit@^0.12.67":
version "0.12.67"
resolved "https://registry.yarnpkg.com/@keplr-wallet/unit/-/unit-0.12.67.tgz#bf69a1d96696e576577c06329d9b93c5e4610a51"
integrity sha512-Mzlrh0j65i6+qoTNg1/Um4Hywpu9mmaZn8HRiX01HdPyaEcLREFkf18eJMklWuHx4nERg+EzvU5E/9J2fuRPdA==
dependencies:
long "^4.0.0"

"@keplr-wallet/unit@^0.12.58":
version "0.12.58"
resolved "https://registry.yarnpkg.com/@keplr-wallet/unit/-/unit-0.12.58.tgz#0d6bd0477462d9f1e34a5309a730361c48671687"
integrity sha512-zHPuwg5BQzASmsJZa/W3YQmWEb7GivSOfPqZ2ErcKWObIqKR5nxDEAQNL7sZDanNnzJYiGe3sXeZyXHUQZbHEA==
dependencies:
"@keplr-wallet/types" "0.12.58"
"@keplr-wallet/types" "0.12.67"
big-integer "^1.6.48"
utility-types "^3.10.0"

Expand Down

0 comments on commit 4c0c24f

Please sign in to comment.