diff --git a/CHANGELOG.md b/CHANGELOG.md index e56720805..494982b63 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## v2.31.0 + +## What's Changed +* Add logger tests by @petreze in https://github.com/hashgraph/hedera-sdk-js/pull/1725 +* Change copyright year by @petreze in https://github.com/hashgraph/hedera-sdk-js/pull/1738 +* Add handlers inside parsing methods from evm address by @petreze in https://github.com/hashgraph/hedera-sdk-js/pull/1741 + ## v2.30.0 ## What's Changed diff --git a/package.json b/package.json index 1b2742dbb..f96182ce2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hashgraph/sdk", - "version": "2.30.0", + "version": "2.31.0", "description": "Hederaâ„¢ Hashgraph SDK", "types": "./lib/index.d.ts", "main": "./lib/index.cjs", diff --git a/src/account/AccountId.js b/src/account/AccountId.js index 4b88a5d86..cd5afe696 100644 --- a/src/account/AccountId.js +++ b/src/account/AccountId.js @@ -105,20 +105,15 @@ export default class AccountId { * @returns {AccountId} */ static fromEvmAddress(shard, realm, evmAddress) { - const evmAddressObj = typeof evmAddress === "string" - ? EvmAddress.fromString(evmAddress) - : evmAddress; + const evmAddressObj = + typeof evmAddress === "string" + ? EvmAddress.fromString(evmAddress) + : evmAddress; if (isLongZeroAddress(evmAddressObj.toBytes())) { - return this.fromSolidityAddress(evmAddressObj.toString()) + return this.fromSolidityAddress(evmAddressObj.toString()); } else { - return new AccountId( - shard, - realm, - 0, - undefined, - evmAddressObj - ); + return new AccountId(shard, realm, 0, undefined, evmAddressObj); } } diff --git a/src/contract/ContractId.js b/src/contract/ContractId.js index f47ce292c..b79770d72 100644 --- a/src/contract/ContractId.js +++ b/src/contract/ContractId.js @@ -69,7 +69,7 @@ export default class ContractId extends Key { return this.fromSolidityAddress(evmAddress); } else { return new ContractId(shard, realm, 0, hex.decode(evmAddress)); - } + } } /**