Skip to content

Commit

Permalink
chore: add bigint tojson
Browse files Browse the repository at this point in the history
  • Loading branch information
janniks committed Feb 3, 2025
1 parent 3c2c6a6 commit 9c81ff0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/connect/src/stories/ConnectPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ import { useForm, FormProvider } from 'react-hook-form';
import './connect.css';
import { Cl } from '@stacks/transactions';

declare global {
interface BigInt {
toJSON(): string;
}
}

BigInt.prototype.toJSON = function () {
return this.toString();
};

const userSession = new UserSession();

// Form Types
Expand Down

0 comments on commit 9c81ff0

Please sign in to comment.