forked from LaconicNetwork/icns-frontend
Merge branch 'main' of https://github.com/interchain-name/icns-frontend into main
This commit is contained in:
commit
5c04d95d0e
@ -15,6 +15,7 @@ import { TendermintTxTracer } from "@keplr-wallet/cosmos";
|
|||||||
import { queryAddressesFromTwitterName } from "../../queries";
|
import { queryAddressesFromTwitterName } from "../../queries";
|
||||||
import { RegisteredAddresses } from "../../types";
|
import { RegisteredAddresses } from "../../types";
|
||||||
import { SHARE_URL } from "../../constants/twitter";
|
import { SHARE_URL } from "../../constants/twitter";
|
||||||
|
import { RPC_URL } from "../../constants/icns";
|
||||||
|
|
||||||
export default function CompletePage() {
|
export default function CompletePage() {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
@ -34,10 +35,7 @@ export default function CompletePage() {
|
|||||||
}, [router.query]);
|
}, [router.query]);
|
||||||
|
|
||||||
const initialize = async (txHash: string, twitterUserName: string) => {
|
const initialize = async (txHash: string, twitterUserName: string) => {
|
||||||
const txTracer = new TendermintTxTracer(
|
const txTracer = new TendermintTxTracer(RPC_URL, "/websocket");
|
||||||
"https://rpc.testnet.osmosis.zone",
|
|
||||||
"/websocket",
|
|
||||||
);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const result: { code?: number } = await txTracer.traceTx(
|
const result: { code?: number } = await txTracer.traceTx(
|
||||||
|
Loading…
Reference in New Issue
Block a user