fix: fixed problem that was causing a unit test failure
@@ -376,6 +376,7 @@ public final class Client implements AutoCloseable, WithPing, WithPingAll {
* @return {@code this}
*/
public synchronized Client setOperatorWith(AccountId accountId, PublicKey publicKey, Function<byte[], byte[]> transactionSigner) {
+ if(getNetworkName() != null) {
try {
accountId.validateChecksum(this);
} catch (BadEntityIdException exc) {
@@ -383,6 +384,7 @@ public final class Client implements AutoCloseable, WithPing, WithPingAll {
"Tried to set the client operator account ID to an account ID with an invalid checksum: " + exc.getMessage()
);
}
+ }
this.operator = new Operator(accountId, publicKey, transactionSigner);
return this;
