You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey team,
We are running into a situation when building a dapp with cosmos-kit react wallet on Injective chain
@cosmos-kit/cosmos-extension-metamask
@cosmos-kit/react
import{walletsasmetaMaskWallets}from'@cosmos-kit/cosmos-extension-metamask';import{walletsaskeplrWallets}from'@cosmos-kit/keplr';exportconstCosmosWalletProvider: FC<PropsWithChildren>=({ children })=>{return(<ChainProviderchains={[injChain]}// https://github.com/cosmos/chain-registry/blob/master/injective/chain.jsonassetLists={[assetList]}wallets={[...keplrWallets, ...metaMaskWallets]}>{children}</ChainProvider>);};
Keplr is working like a charm, but Metamask is not working as expected. There are two scenarios:
The wallet is successfully connected, but the "inj" address seems not correct. (different from the one showing in injective hub. See the video below):
Screen.Recording.2024-02-21.at.19.18.35.mov
The error Coin type 60 is forbidden is thrown when I try to use client.signArbitrary.
Code:
const{ client, status }=useWalletClient();//...<divonClick={()=>{if(client?.signArbitrary&&client.getAccount){client.getAccount('injective-1').then((account)=>{// Along with the following 'arr', I also tried inj addr and eth hex addr. But still no luckconstarr=Buffer.from(newUint8Array(Object.values(account.pubkey)),).toString('base64');console.log({addr: arr});client?.signArbitrary?.('injective-1',arr,'test');});}}}>Signwithmetamask</div>
//...
Not sure if it is caused by INJ chain's being not supported (or even the .signArbitrary is not support using Metamask?).
Please point me out if I miss anything.
The text was updated successfully, but these errors were encountered:
@eric-notifi Hello! Thanks for this. The issue you are seeing is because Coin Type 60 is the coin type for all native Metamask addresses and they block Coin Type 60 in the Metamask Snap SDK. Thus any coin type 60 chains are supported natively by Metamask, not with the Cosmos Extension for Metamask.
Hey team,
We are running into a situation when building a dapp with cosmos-kit react wallet on Injective chain
Keplr is working like a charm, but Metamask is not working as expected. There are two scenarios:
Screen.Recording.2024-02-21.at.19.18.35.mov
Coin type 60 is forbidden
is thrown when I try to useclient.signArbitrary
.Code:
Not sure if it is caused by INJ chain's being not supported (or even the
.signArbitrary
is not support using Metamask?).Please point me out if I miss anything.
The text was updated successfully, but these errors were encountered: