Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
Use jsonUnwrapStringify instead of json-bigint
Browse files Browse the repository at this point in the history
  • Loading branch information
orhoj committed Mar 20, 2024
1 parent 78102c5 commit 670c29b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
4 changes: 1 addition & 3 deletions packages/wallet-connectors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,13 @@
"dependencies": {
"@concordium/browser-wallet-api-helpers": "^3.0.0",
"@walletconnect/qrcode-modal": "^1.8.0",
"@walletconnect/sign-client": "^2.1.4",
"json-bigint": "^1.0.0"
"@walletconnect/sign-client": "^2.1.4"
},
"peerDependencies": {
"@concordium/web-sdk": "7.x"
},
"devDependencies": {
"@tsconfig/recommended": "^1.0.1",
"@types/json-bigint": "^1",
"@walletconnect/types": "^2.1.4",
"prettier": "2.8.1",
"typescript": "^5.2.2"
Expand Down
3 changes: 1 addition & 2 deletions packages/wallet-connectors/src/WalletConnect.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import JSONBigInt from 'json-bigint';
import {
SendTransactionInitContractPayload,
SendTransactionPayload,
Expand Down Expand Up @@ -303,7 +302,7 @@ export class WalletConnectConnection implements WalletConnection {
challenge: string,
credentialStatements: CredentialStatements
): Promise<VerifiablePresentation> {
const paramsJson = JSONBigInt.stringify({ challenge, credentialStatements });
const paramsJson = jsonUnwrapStringify({ challenge, credentialStatements });
const params = { paramsJson };
const result = await this.connector.client.request<{ verifiablePresentationJson: string }>({
topic: this.session.topic,
Expand Down
9 changes: 0 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1723,11 +1723,9 @@ __metadata:
dependencies:
"@concordium/browser-wallet-api-helpers": ^3.0.0
"@tsconfig/recommended": ^1.0.1
"@types/json-bigint": ^1
"@walletconnect/qrcode-modal": ^1.8.0
"@walletconnect/sign-client": ^2.1.4
"@walletconnect/types": ^2.1.4
json-bigint: ^1.0.0
prettier: 2.8.1
typescript: ^5.2.2
peerDependencies:
Expand Down Expand Up @@ -3444,13 +3442,6 @@ __metadata:
languageName: node
linkType: hard

"@types/json-bigint@npm:^1":
version: 1.0.4
resolution: "@types/json-bigint@npm:1.0.4"
checksum: 7aee137b3796121cec755247ea56577611c8e5df89224c567fa71999764d01e12199c4089c6be8a9e4e6a6a8f5c6f309eee2965cc3dd8d576f4c4ba432566041
languageName: node
linkType: hard

"@types/json-schema@npm:*, @types/json-schema@npm:^7.0.12, @types/json-schema@npm:^7.0.4, @types/json-schema@npm:^7.0.5, @types/json-schema@npm:^7.0.8, @types/json-schema@npm:^7.0.9":
version: 7.0.12
resolution: "@types/json-schema@npm:7.0.12"
Expand Down

0 comments on commit 670c29b

Please sign in to comment.