Skip to content

Commit

Permalink
Merge pull request #224 from gadiguy/patch-1
Browse files Browse the repository at this point in the history
Revert mistake in updateVaultAccount
  • Loading branch information
zoharsf authored Nov 16, 2023
2 parents fd2e8ba + f60734c commit 340fdaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fireblocks-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -778,12 +778,12 @@ export class FireblocksSDK {
* @param vaultAccountId
* @param name A new name for the vault account
*/
public async updateVaultAccount(vaultAccountId: string, name: string, requestOptions?: RequestOptions): Promise<VaultAccountResponse> {
public async updateVaultAccount(vaultAccountId: string, name: string): Promise<VaultAccountResponse> {
const body = {
name: name
};

return await this.apiClient.issuePostRequest(`/v1/vault/accounts/${vaultAccountId}`, body, requestOptions);
return await this.apiClient.issuePutRequest(`/v1/vault/accounts/${vaultAccountId}`, body);
}

/**
Expand Down

0 comments on commit 340fdaa

Please sign in to comment.