Skip to content

Commit

Permalink
override polyfill for bitcoin
Browse files Browse the repository at this point in the history
  • Loading branch information
Wozacosta committed Dec 18, 2024
1 parent 202a351 commit 85bd6f5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libs/coin-modules/coin-bitcoin/src/bridge.integration.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { DatasetTest } from "@ledgerhq/types-live";
import { Buffer as OriginalBuffer } from "buffer";
// import { testBridge } from "@ledgerhq/coin-framework/test-helpers/bridge-integration-suite";

import type { Transaction } from "./types";
Expand All @@ -13,6 +14,13 @@ import zencash from "./datasets/zencash";
import litecoin from "./datasets/litecoin";
import zcash from "./datasets/zcash";

// NOTE: overrides polyfill set here libs/ledger-live-common/jest.polyfills.js
Object.defineProperty(globalThis, "Buffer", {
value: OriginalBuffer,
writable: true,
configurable: true,
});

/*
import { createBridges } from "./bridge/js";
import { CryptoCurrency } from "@ledgerhq/types-cryptoassets";
Expand Down

0 comments on commit 85bd6f5

Please sign in to comment.