Skip to content

Commit de06da0

Browse files
fix casing to be same as backend for consistency
- Fixed #133
1 parent 46c9248 commit de06da0

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/helpers/nodeUtils.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ export async function retrieveOrImportShare(params: {
157157
{
158158
headers: {
159159
verifier,
160-
verifierId: verifierParams.verifier_id,
160+
verifierid: verifierParams.verifier_id,
161161
network,
162-
clientId,
163-
enableGating: "true",
162+
clientid: clientId,
163+
enablegating: "true",
164164
},
165165
},
166166
{ useAPIKey: true }
@@ -689,10 +689,10 @@ export const legacyKeyAssign = async ({
689689
data,
690690
{
691691
headers: {
692-
pubKeyX: torusNodePubs[nodeNum].X,
693-
pubKeyY: torusNodePubs[nodeNum].Y,
692+
pubkeyx: torusNodePubs[nodeNum].X,
693+
pubkeyy: torusNodePubs[nodeNum].Y,
694694
network,
695-
clientId,
695+
clientid: clientId,
696696
},
697697
},
698698
{ useAPIKey: true }

src/torus.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -266,10 +266,10 @@ class Torus {
266266
{
267267
headers: {
268268
verifier,
269-
verifierId: verifierParams.verifier_id,
269+
verifierid: verifierParams.verifier_id,
270270
network: this.network,
271-
clientId: this.clientId,
272-
enableGating: "true",
271+
clientid: this.clientId,
272+
enablegating: "true",
273273
},
274274
},
275275
{ useAPIKey: true }

0 commit comments

Comments
 (0)