Skip to content

Commit

Permalink
better coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-fireblocks committed Apr 18, 2020
1 parent f96d6ef commit ef9810a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions fireblocks_sdk/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,14 +243,18 @@ def cancel_transaction_by_id(self, txid):

return self._post_request(f"/v1/transactions/{txid}/cancel")

def create_vault_account(self, name, hiddenOnUI = False):
def create_vault_account(self, name, hiddenOnUI=False):
"""Creates a new vault account.
Args:
name (str): A name for the new vault account
"""
body = {
"name": name,
"hiddenOnUI": hiddenOnUI
}

return self._post_request("/v1/vault/accounts", {"name": name, "hiddenOnUI": hiddenOnUI})
return self._post_request("/v1/vault/accounts", body)

def hide_vault_account(self, vault_account_id):
"""Hides the vault account from being visible in the web console
Expand Down

0 comments on commit ef9810a

Please sign in to comment.