Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
vasyl-ivanchuk committed Mar 14, 2024
1 parent 358e460 commit 82b10ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/data-fetcher/src/utils/overrideBigNumberToJson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { BigNumber } from "ethers";
export default function overrideBigNumberToJson() {
// override to customize JSON.stringify serialization for BigNumbers
BigNumber.prototype.toJSON = function toJSON() {
// return BigNumber decimal representation
// return BigNumber string representation
return this.toString();
};
}

0 comments on commit 82b10ce

Please sign in to comment.