What's Changed
This release refines EVM-compatible address handling and introduces a clear migration path to the new SDK package. Developers targeting Hedera's EVM integration should take note of the new method for address translation and the associated deprecations.
Enhancements
<EntityId>.toEvmAddress():
Now available forAccountId,ContractId,ContractDelegateId,TopicId,TokenId, andFileId. This provides a standardized way to obtain EVM-compatible 20-byte addresses from Hedera entity IDs.<EntityId>.fromEvmAddress(shard, realm, evmAddress):
Shard and realm are no longer encoded into the EVM address. They must be passed explicitly when constructing an EntityId from an EVM address.
Documentation
- Migration guide to
@hiero/sdkv3:
Includes comprehensive documentation, automated scripts for Unix and Windows, supported file types, and a template for migration-related issues.
Deprecations
fromSolidityAddress()has been replaced withfromEvmAddress().toSolidityAddress()has been replaced withtoEvmAddress().EthereumFlowhas been deprecated. With the introduction of jumbo transactions, it is now more cost-effective and efficient to useEthereumTransaction.
Full Changelog: v2.67.0...v2.68.0