Skip to content

Commit 600cf74

Browse files
fix up
Signed-off-by: Ndacyayisenga-droid <[email protected]>
1 parent e5ecaac commit 600cf74

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/AccountCreateIntegrationTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -436,11 +436,12 @@ void createAccountUsingSetKeyWithAliasAccountShouldHaveKeyAsKeyAndECDSAKEyAsAlia
436436
}
437437

438438
@Test
439-
@DisplayName("Can create account using setKeyWithoutAlias, account should have key as key and no alias")
440-
void createAccountUsingSetKeyWithoutAliasAccountShouldHaveKeyAsKeyAndNoAlias() throws Exception {
439+
@DisplayName("Can create account using setKeyWithoutAlias, account should have key as key and expected alias")
440+
void createAccountUsingSetKeyWithoutAliasAccountShouldHaveKeyAsKeyAndExpectedAlias() throws Exception {
441441
try (var testEnv = new IntegrationTestEnv(1)) {
442442

443443
var key = PrivateKey.generateECDSA();
444+
var evmAddress = key.getPublicKey().toEvmAddress();
444445

445446
var accountId = new AccountCreateTransaction()
446447
.setReceiverSignatureRequired(true)
@@ -457,7 +458,7 @@ void createAccountUsingSetKeyWithoutAliasAccountShouldHaveKeyAsKeyAndNoAlias() t
457458

458459
assertThat(info.accountId).isNotNull();
459460
assertThat(info.key).isEqualTo(key.getPublicKey());
460-
assertTrue(isLongZeroAddress(Hex.decode(info.contractAccountId)));
461+
assertThat(info.contractAccountId).hasToString(evmAddress.toString());
461462
}
462463
}
463464

0 commit comments

Comments
 (0)