refactor: reorder AccountInfo methods
@@ -132,6 +132,10 @@ public final class AccountInfo {
);
}
+ public static AccountInfo fromBytes(byte[] bytes) throws InvalidProtocolBufferException {
+ return fromProtobuf(CryptoGetInfoResponse.AccountInfo.parseFrom(bytes).toBuilder().build());
+ }
+
CryptoGetInfoResponse.AccountInfo toProtoBuf() {
var accountInfoBuilder = CryptoGetInfoResponse.AccountInfo.newBuilder()
.setAccountID(this.accountId.toProtobuf())
@@ -174,10 +178,6 @@ public final class AccountInfo {
.toString();
}
- public static AccountInfo fromBytes(byte[] bytes) throws InvalidProtocolBufferException {
- return fromProtobuf(CryptoGetInfoResponse.AccountInfo.parseFrom(bytes).toBuilder().build());
- }
-
public byte[] toBytes() {
return this.toProtoBuf().toByteArray();
}
