File tree 1 file changed +4
-3
lines changed
sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -436,11 +436,12 @@ void createAccountUsingSetKeyWithAliasAccountShouldHaveKeyAsKeyAndECDSAKEyAsAlia
436
436
}
437
437
438
438
@ 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 {
441
441
try (var testEnv = new IntegrationTestEnv (1 )) {
442
442
443
443
var key = PrivateKey .generateECDSA ();
444
+ var evmAddress = key .getPublicKey ().toEvmAddress ();
444
445
445
446
var accountId = new AccountCreateTransaction ()
446
447
.setReceiverSignatureRequired (true )
@@ -457,7 +458,7 @@ void createAccountUsingSetKeyWithoutAliasAccountShouldHaveKeyAsKeyAndNoAlias() t
457
458
458
459
assertThat (info .accountId ).isNotNull ();
459
460
assertThat (info .key ).isEqualTo (key .getPublicKey ());
460
- assertTrue ( isLongZeroAddress ( Hex . decode ( info .contractAccountId )));
461
+ assertThat ( info .contractAccountId ). hasToString ( evmAddress . toString ( ));
461
462
}
462
463
}
463
464
You can’t perform that action at this time.
0 commit comments