Skip to content

Commit

Permalink
feat(sdk): remove customjsonrpc (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevzzsk authored Oct 5, 2023
1 parent dae2669 commit 19bf26d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 82 deletions.
6 changes: 2 additions & 4 deletions packages/ord-connect/src/hooks/useSend.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { useState } from "react";
import { PSBTBuilder } from "@sadoprotocol/ordit-sdk";
import { JsonRpcDatasource, PSBTBuilder } from "@sadoprotocol/ordit-sdk";
import { sendBtcTransaction } from "sats-connect";

import { useOrdContext, Wallet } from "../providers/OrdContext.tsx";
import { capitalizeFirstLetter } from "../utils/text-helper";
import signPsbt from "../lib/signPsbt";
import CustomJsonRpcDatasource from "../lib/CustomJsonRPCDatasource";

type SendFunction = (
address: string,
Expand All @@ -18,8 +17,7 @@ export function useSend(): [SendFunction, string | null, boolean] {
const [error, setError] = useState<string | null>(null);
const [loading, setLoading] = useState<boolean>(false);

// TODO: revert quick fix to relay with old v2
const datasource = new CustomJsonRpcDatasource({ network });
const datasource = new JsonRpcDatasource({ network });

const safeSend: SendFunction = async (toAddress, satoshis, feeRate) => {
setLoading(true);
Expand Down
78 changes: 0 additions & 78 deletions packages/ord-connect/src/lib/CustomJsonRPCDatasource.ts

This file was deleted.

0 comments on commit 19bf26d

Please sign in to comment.