Skip to content

Commit

Permalink
revert buffer imports
Browse files Browse the repository at this point in the history
  • Loading branch information
dni committed Feb 11, 2024
1 parent f194b3c commit 27cfbd3
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/utils/boltzClient.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Transaction } from "bitcoinjs-lib";
import { Musig } from "boltz-core";
import Buffer from "buffer";
import { Buffer } from "buffer";
import { Transaction as LiquidTransaction } from "liquidjs-lib";

import { fetcher } from "./helper";
Expand Down
2 changes: 1 addition & 1 deletion src/utils/compat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
constructClaimTransaction as lcCT,
constructRefundTransaction as lcRT,
} from "boltz-core/dist/lib/liquid";
import Buffer from "buffer";
import { Buffer } from "buffer";
import {
address as LiquidAddress,
networks as LiquidNetworks,
Expand Down
2 changes: 1 addition & 1 deletion src/utils/patches.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Buffer from "buffer";
import { Buffer } from "buffer";

// liquidjs-lib node buffer patch for writeBigUInt64BE
// @ts-ignore
Expand Down
2 changes: 1 addition & 1 deletion src/utils/refund.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
detectSwap,
} from "boltz-core";
import { LiquidRefundDetails } from "boltz-core/dist/lib/liquid";
import Buffer from "buffer";
import { Buffer } from "buffer";
import { ECPairInterface } from "ecpair";
import { Network as LiquidNetwork } from "liquidjs-lib/src/networks";
import log from "loglevel";
Expand Down
2 changes: 1 addition & 1 deletion src/utils/taproot/musig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
LiquidRefundDetails,
TaprootUtils as LiquidTaprootUtils,
} from "boltz-core/dist/lib/liquid";
import Buffer from "buffer";
import { Buffer } from "buffer";
import { randomBytes } from "crypto";
import { ECPairInterface } from "ecpair";
import { Transaction as LiquidTransaction } from "liquidjs-lib";
Expand Down
4 changes: 2 additions & 2 deletions tests/components/Fees.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { BigNumber } from "bignumber.js";

import Fees from "../../src/components/Fees";
import { BTC } from "../../src/consts";
import { CreateProvider, useCreateContext } from "../../src/context/Create";
import { GlobalProvider, useGlobalContext } from "../../src/context/Global";
import { useCreateContext } from "../../src/context/Create";
import { useGlobalContext } from "../../src/context/Global";
import { calculateSendAmount } from "../../src/utils/calculate";
import { cfg } from "../config";
import { contextWrapper } from "../helper";
Expand Down

0 comments on commit 27cfbd3

Please sign in to comment.