Skip to content

Commit

Permalink
Remove prints from sdk functions
Browse files Browse the repository at this point in the history
  • Loading branch information
nirfireblocks committed Apr 4, 2024
1 parent d39f139 commit 7729b53
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions fireblocks_sdk/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -2838,14 +2838,7 @@ def add_validation_key(self, validatorKeyPem: str, daysTillExpired: int):
"""

url = "/v1/external_keys/validation_keys"

body = {
"pubKeyPem": validatorKeyPem,
"daysTillExpired": daysTillExpired
}

print("url="+url)
print ("body="+str(body))
body = {"pubKeyPem": validatorKeyPem, "daysTillExpired": daysTillExpired}
return self._post_request(url, body)

def get_validation_keys(self):
Expand Down Expand Up @@ -2883,9 +2876,6 @@ def add_external_key(self, signedCertPem: str, signingDeviceKeyId:str):

url = "/v1/external_keys/external_keys"
body = {"signedCertPem": signedCertPem, "signingDeviceKeyId": signingDeviceKeyId}

print("url="+url)
print ("body="+str(body))
return self._post_request(url, body)

def get_external_keys(self):
Expand All @@ -2900,13 +2890,9 @@ def link_external_key_to_users(self, keyId: str, userIds: List[str]):
userIds: A list of users Ids to be linked to the key. Can be obtained via get_users()
]
"""
url = f"/v1/external_keys/external_key/{keyId}"
body = {
"users": userIds
}

print("url="+url)
print ("body="+str(body))
url = f"/v1/external_keys/external_key/{keyId}"
body = {"users": userIds}
return self._post_request(url, body)

def _get_request(self, path, page_mode=False, query_params: Dict = None):
Expand Down

0 comments on commit 7729b53

Please sign in to comment.