Closed Xyzjesus closed 1 year ago
Hey @Xyzjesus for validateAddress()
we decided to remove that because we don't want to have bech32
in our deps.
You can copy this block of code to your utils:
import { bech32 } from "bech32";
export const validateAddress = (address: string, prefix: string) => {
if (!address) return false;
try {
return bech32.decode(address).prefix === prefix;
} catch (error) {
return false;
}
};
@Xyzjesus Can you give me the ChainInfo
that you using.
as for window.keplr
Can you confirm that you already have keplr wallet extension installed in you browser?
I'll recheck mainnetChains.juno
hey @codingki thanks with validation method, I'll try it
as for
window.keplr
Can you confirm that you already have [keplr wallet extension] installed in you browser? Yes, It's already installed. We have same problem with different accounts, about 3-4 users from other locations and same browsers (brave, chrome) can't connect with this error. for example this test was made yesterday from keplr's user.Can you give me the
ChainInfo
that you using. of course, here it is: https://github.com/diekuche/gutenberg/blob/56f4806b67bd4bda4a607e0718392dbf0f018dcb/src/components/Header/Header.tsx#L16I'll recheck
mainnetChains.juno
thanks a lot bro, it would be awesome, because everything works well with Bostrom chain
Hey @Xyzjesus
mainnetChains.juno
works fine for me, I can't reproduce window.keplr
error but from the code perspective if keplr is not installed it will return that error and recheck our packages there's nothing wrong. Try our example here to check https://graz-example.vercel.app/
Tips:
use useCheckWallet
hook to check installed wallet docs here: https://graz.strange.love/docs/hooks/useCheckWallet
There's a bug that I found when using mainnetChains.juno
idk if it's related to this, it's useBalances
bug. In mainnetChains.juno
we have cw20:
prefix in the coinMinimalDenom
it is returning an error. Will be fix in next release #69
Describe the bug
sup bros! we have another issue about connecting with graz.
https://user-images.githubusercontent.com/62913761/234012034-0d7165d2-7b74-47b0-8188-0d33c4c2aa21.mp4
A clear and concise description of what the bug is.
...
To Reproduce
Steps to reproduce the behavior:
Expected behavior
...
Screenshots
...
Device
Desktop
Smartphone (haven't tried)
Additional context
...