Skip to content

Commit

Permalink
adding JSON config changes
Browse files Browse the repository at this point in the history
  • Loading branch information
erdimaden committed May 13, 2024
1 parent 60a7953 commit 744560b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/coinbase/coinbase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class Coinbase {
if (!config.name || !config.privateKey) {
throw InvalidConfiguration;
}
return new Coinbase(config.apiKeyName, config.privateKey);
return new Coinbase(config.name, config.privateKey);
} catch (e) {
throw InvalidConfiguration;
}
Expand Down
2 changes: 1 addition & 1 deletion src/coinbase/tests/config/coinbase_cloud_api_key.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"apiKeyName": "organizations/0c3bbe72-ac81-46ec-946a-7cd019d6d86b/apiKeys/db813705-bf33-4e33-816c-4c3f1f54672b",
"name": "organizations/0c3bbe72-ac81-46ec-946a-7cd019d6d86b/apiKeys/db813705-bf33-4e33-816c-4c3f1f54672b",
"privateKey": "-----BEGIN EC PRIVATE KEY-----\nMHcCAQEEIBPl8LBKrDw2Is+bxQEXa2eHhDmvIgArOhSAdmYpYQrCoAoGCCqGSM49\nAwEHoUQDQgAEQSoVSr8ImpS18thpGe3KuL9efy+L+AFdFFfCVwGgCsKvTYVDKaGo\nVmN5Bl6EJkeIQjyarEtWbmY6komwEOdnHA==\n-----END EC PRIVATE KEY-----\n"
}
2 changes: 1 addition & 1 deletion src/coinbase/tests/config/invalid.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"apiKey": 0,
"name": 0,
"apiSecret": ""
}

0 comments on commit 744560b

Please sign in to comment.