Skip to content

Commit 8fa5671

Browse files
authored
fix: Cherry-pick: fixed diff test issue 12509 (#12597) (#12610)
Signed-off-by: Iris Simon <[email protected]>
1 parent 3a11fc4 commit 8fa5671

File tree

1 file changed

+4
-6
lines changed
  • hedera-node/hedera-token-service-impl/src/main/java/com/hedera/node/app/service/token/impl/handlers

1 file changed

+4
-6
lines changed

hedera-node/hedera-token-service-impl/src/main/java/com/hedera/node/app/service/token/impl/handlers/CryptoUpdateHandler.java

+4-6
Original file line numberDiff line numberDiff line change
@@ -404,12 +404,10 @@ private Fees cryptoUpdateFees(
404404
final var accountMemoSize = (account == null || account.memo() == null)
405405
? 0L
406406
: account.memo().getBytes(StandardCharsets.UTF_8).length;
407-
final long newVariableBytes = (newMemoSize != 0L
408-
? newMemoSize
409-
: accountMemoSize
410-
+ (keySize == 0L && account != null
411-
? getAccountKeyStorageSize(fromPbj(account.keyOrElse(Key.DEFAULT)))
412-
: keySize));
407+
final long newVariableBytes = (newMemoSize != 0L ? newMemoSize : accountMemoSize)
408+
+ (keySize == 0L && account != null
409+
? getAccountKeyStorageSize(fromPbj(account.keyOrElse(Key.DEFAULT)))
410+
: keySize);
413411

414412
final long tokenRelBytes =
415413
(account == null ? 0 : account.numberAssociations()) * CRYPTO_ENTITY_SIZES.bytesInTokenAssocRepr();

0 commit comments

Comments
 (0)