Use laconic namespace
This commit is contained in:
parent
9e34835adf
commit
e71d813a4a
@ -130,6 +130,13 @@ export const WalletConnectProvider = ({
|
||||
chains: [`cosmos:${process.env.REACT_APP_LACONICD_CHAIN_ID}`],
|
||||
events: [],
|
||||
},
|
||||
laconic: {
|
||||
methods: [
|
||||
"cosmos_sendTransaction",
|
||||
],
|
||||
chains: [`laconic:${process.env.REACT_APP_LACONICD_CHAIN_ID}`],
|
||||
events: [],
|
||||
},
|
||||
};
|
||||
|
||||
const { uri, approval } = await signClient.connect({
|
||||
|
@ -120,7 +120,7 @@ const SignWithLaconic = () => {
|
||||
code: number;
|
||||
}>({
|
||||
topic: session!.topic,
|
||||
chainId: `cosmos:${process.env.REACT_APP_LACONICD_CHAIN_ID}`,
|
||||
chainId: `laconic:${process.env.REACT_APP_LACONICD_CHAIN_ID}`,
|
||||
request: {
|
||||
method: "cosmos_sendTransaction",
|
||||
params,
|
||||
@ -145,10 +145,10 @@ const SignWithLaconic = () => {
|
||||
|
||||
const getBalances = useCallback(async () => {
|
||||
try {
|
||||
const cosmosClient = await createLaconicClient(
|
||||
const laconicClient = await createLaconicClient(
|
||||
process.env.REACT_APP_LACONICD_RPC_ENDPOINT!,
|
||||
);
|
||||
const balance = await cosmosClient.getBalance(
|
||||
const balance = await laconicClient.getBalance(
|
||||
laconicAddress!,
|
||||
process.env.REACT_APP_LACONICD_DENOM!,
|
||||
);
|
||||
|
@ -133,7 +133,7 @@ const Validator = () => {
|
||||
};
|
||||
const response = await signClient!.request<{ code: number }>({
|
||||
topic: session!.topic,
|
||||
chainId: `cosmos:${process.env.REACT_APP_LACONICD_CHAIN_ID}`,
|
||||
chainId: `laconic:${process.env.REACT_APP_LACONICD_CHAIN_ID}`,
|
||||
request: {
|
||||
method: "cosmos_sendTransaction",
|
||||
params,
|
||||
@ -172,7 +172,7 @@ const Validator = () => {
|
||||
onChange={(e) => setLaconicAddress(e.target.value)}
|
||||
style={{ maxWidth: "600px", display: "block" }}
|
||||
>
|
||||
{session?.namespaces.cosmos.accounts.map((address, index) => (
|
||||
{session?.namespaces.laconic.accounts.map((address, index) => (
|
||||
<MenuItem value={address.split(":")[2]} key={index}>
|
||||
{address.split(":")[2]}
|
||||
</MenuItem>
|
||||
|
Loading…
Reference in New Issue
Block a user