Skip to content

Commit

Permalink
Revert mistake in updateVaultAccount
Browse files Browse the repository at this point in the history
  • Loading branch information
gadiguy authored Nov 16, 2023
1 parent fd2e8ba commit f60734c
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 f60734c

Please sign in to comment.