Skip to content

Commit

Permalink
Merge pull request #169 from oraichain/hotfix/fix_polyfill_tendermint
Browse files Browse the repository at this point in the history
Hotfix/fix polyfill tendermint
  • Loading branch information
ducphamle2 authored Feb 19, 2024
2 parents b55d334 + e5836cc commit ec95353
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
21 changes: 11 additions & 10 deletions packages/oraidex-server/src/polyfill.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
import { Tendermint34Client } from "@cosmjs/tendermint-rpc";

//@ts-ignore
BigInt.prototype.toJSON = function () {
return this.toString();
};

// polyfill

// @ts-ignore
// Tendermint34Client.detectVersion = () => {};
//@ts-ignore
Tendermint34Client.detectVersion = () => {};
//@ts-ignore
Tendermint34Client.prototype.status = async function () {
return {
nodeInfo: {
network: "Oraichain",
version: ""
}
};
};
// Tendermint34Client.prototype.status = async function () {
// return {
// nodeInfo: {
// network: "Oraichain",
// version: ""
// }
// };
// };
9 changes: 0 additions & 9 deletions packages/oraidex-server/tests/polyfill-tendermint.spec.ts

This file was deleted.

0 comments on commit ec95353

Please sign in to comment.