Skip to content

Commit

Permalink
build sdk and prepare for release
Browse files Browse the repository at this point in the history
Signed-off-by: Petar Tonev <[email protected]>
  • Loading branch information
petreze committed Jul 27, 2023
1 parent 359e51f commit 1e5f7cb
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
17 changes: 6 additions & 11 deletions src/account/AccountId.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/contract/ContractId.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default class ContractId extends Key {
return this.fromSolidityAddress(evmAddress);
} else {
return new ContractId(shard, realm, 0, hex.decode(evmAddress));
}
}
}

/**
Expand Down

0 comments on commit 1e5f7cb

Please sign in to comment.