Skip to content

Commit

Permalink
fixed metamask txn bug
Browse files Browse the repository at this point in the history
  • Loading branch information
assetmantledevops authored and kombos committed Mar 5, 2024
1 parent 6c21311 commit 75f1bb6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
1 change: 1 addition & 0 deletions constant/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export const rpc = "https://rpc.assetmantle.one/";
export const restApi = "https://rest.assetmantle.one/";
export const chain = "assetmantle";
export const defaultChainDenom = "umntl";
export const defaultFeeAmount = "2000";
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@cosmos-kit/keplr-extension": "^2.3.3",
"@cosmos-kit/leap": "^2.3.3",
"@cosmos-kit/leap-extension": "^2.4.3",
"@cosmos-kit/leap-metamask-cosmos-snap": "^0.6.1",
"@cosmos-kit/leap-metamask-cosmos-snap": "^0.6.2",
"@cosmos-kit/react": "^2.6.4",
"@cosmos-kit/vectis": "^2.3.3",
"@headlessui/react": "^1.7.17",
Expand Down
13 changes: 9 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions ui_components/CosmosKitProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use client";
import { chain as curChain, rpc } from "@/constant";
import { chain as curChain, restApi, rpc } from "@/constant";
import asset from "@/constant/asset";
import chain from "@/constant/chain";
import Button from "@/ui_components/Button";
Expand Down Expand Up @@ -66,7 +66,6 @@ export default function CosmosKitProvider({
<div className="grid grid-cols-2 md:grid-cols-4 gap-4 mb-4 items-center justify-center font-inter">
{walletRepo?.wallets?.map(
({ walletName, connect, walletInfo }: any) => {
console.log("walletInfo: ", walletInfo);
return (
<div key={walletName} className="col-span-1">
<Button
Expand Down Expand Up @@ -114,8 +113,9 @@ export default function CosmosKitProvider({
walletModal={WalletsModal}
endpointOptions={{
endpoints: {
assetmantlelocalnet: {
assetmantle: {
rpc: [rpc],
rest: [restApi],
},
},
}}
Expand Down

0 comments on commit 75f1bb6

Please sign in to comment.