diff --git a/bindings/nodejs/CHANGELOG.md b/bindings/nodejs/CHANGELOG.md index 4b4efc609d..d1b74c62f7 100644 --- a/bindings/nodejs/CHANGELOG.md +++ b/bindings/nodejs/CHANGELOG.md @@ -23,7 +23,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- Export ILoggerConfig from types; +- Export `ILoggerConfig` from types; +- Added `Account::prepareIncreaseVotingPower`; + +## Changed + +- Deprecate `Account::prepareVotingPower`; ## 1.0.4 - 2023-08-08 diff --git a/bindings/nodejs/lib/wallet/account.ts b/bindings/nodejs/lib/wallet/account.ts index 8961e9f133..e4a80bcc13 100644 --- a/bindings/nodejs/lib/wallet/account.ts +++ b/bindings/nodejs/lib/wallet/account.ts @@ -1389,13 +1389,20 @@ export class Account { return JSON.parse(response).payload; } + /** @deprecated use prepareIncreaseVotingPower() instead. */ + async prepareVotingPower(amount: string): Promise { + return this.prepareIncreaseVotingPower(amount); + } + /** * Prepare to increase the voting power. * * @param amount The amount to increase the voting power by. * @returns An instance of `PreparedTransaction`. */ - async prepareVotingPower(amount: string): Promise { + async prepareIncreaseVotingPower( + amount: string, + ): Promise { const response = await this.methodHandler.callAccountMethod( this.meta.index, {