Skip to content

Commit

Permalink
Hotfix issue #1571.
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Lebedev <nikita.lebedev@limechain.tech>
  • Loading branch information
thenswan authored Sep 18, 2023
1 parent d7096b3 commit 0ea1c5a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sdk/src/main/java/com/hedera/hashgraph/sdk/AccountInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
*/
package com.hedera.hashgraph.sdk;

import static java.util.stream.Collectors.toList;

import com.google.common.base.MoreObjects;
import com.google.protobuf.InvalidProtocolBufferException;
import com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse;
Expand Down Expand Up @@ -261,7 +263,7 @@ static AccountInfo fromProtobuf(CryptoGetInfoResponse.AccountInfo accountInfo) {

var liveHashes = Arrays.stream(accountInfo.getLiveHashesList().toArray())
.map((liveHash) -> LiveHash.fromProtobuf((com.hedera.hashgraph.sdk.proto.LiveHash) liveHash))
.toList();
.collect(toList());

Map<TokenId, TokenRelationship> relationships = new HashMap<>();

Expand Down Expand Up @@ -317,7 +319,7 @@ public static AccountInfo fromBytes(byte[] bytes) throws InvalidProtocolBufferEx
CryptoGetInfoResponse.AccountInfo toProtobuf() {
var hashes = Arrays.stream(liveHashes.toArray())
.map((liveHash) -> ((LiveHash) liveHash).toProtobuf())
.toList();
.collect(toList());

var accountInfoBuilder = CryptoGetInfoResponse.AccountInfo.newBuilder()
.setAccountID(accountId.toProtobuf())
Expand Down

0 comments on commit 0ea1c5a

Please sign in to comment.