Skip to content

Commit 443f1f0

Browse files
committed
chore: added clearServiceEndpoint method
Signed-off-by: Manish Dait <daitmanish88@gmail.com>
1 parent f49e78a commit 443f1f0

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

sdk/src/main/java/com/hedera/hashgraph/sdk/NodeUpdateTransaction.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,16 @@ public NodeUpdateTransaction addServiceEndpoint(Endpoint serviceEndpoint) {
319319
return this;
320320
}
321321

322+
/**
323+
* Clear serviceEndpoint lists.
324+
* @return {@code this}
325+
*/
326+
public NodeUpdateTransaction clearServiceEndpoint() {
327+
requireNotFrozen();
328+
serviceEndpoints.clear();
329+
return this;
330+
}
331+
322332
/**
323333
* Extract the certificate used to sign gossip events.
324334
* @return the DER encoding of the certificate presented.

0 commit comments

Comments
 (0)