We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5a8c79 commit 445efe6Copy full SHA for 445efe6
templates/chain-template/pages/sign-message.tsx
@@ -53,16 +53,16 @@ export default function SignMessage() {
53
}
54
55
if (!(wallet instanceof ExtensionWallet)) {
56
+ console.log('wallet', wallet, chain.chainType);
57
return
58
59
60
try {
61
setSigningIn(true);
-
62
- const cosmosWallet = wallet.getWalletByChainType('cosmos') as CosmosWallet;
+ const cosmosWallet = wallet.getWalletOfType(CosmosWallet)
63
64
// Sign the message
65
- const result = await cosmosWallet.signArbitrary(chain.chainId, address, message);
+ const result = await cosmosWallet!.signArbitrary(chain.chainId, address, message);
66
67
// Get the public key
68
const account = await wallet?.getAccount(chain.chainId);
0 commit comments