diff --git a/src/main/java/net/casper/litmus/verification/DeployVerifier.java b/src/main/java/net/casper/litmus/verification/DeployVerifier.java index 8669dee..6eb5184 100644 --- a/src/main/java/net/casper/litmus/verification/DeployVerifier.java +++ b/src/main/java/net/casper/litmus/verification/DeployVerifier.java @@ -27,7 +27,7 @@ public class DeployVerifier { public void verifyDeploy(final Deploy jsonDeploy) throws GeneralSecurityException { assert jsonDeploy != null: "Deploy cannot be null"; - var deployHeader = DeployHeaderHelper.buildHeader(jsonDeploy); + var deployHeader = DeployHeaderHelper.cloneHeader(jsonDeploy); verifyDeploySignature(jsonDeploy); diff --git a/src/main/java/net/casper/litmus/verification/helper/DeployHeaderHelper.java b/src/main/java/net/casper/litmus/verification/helper/DeployHeaderHelper.java index 1d540fa..55797a0 100644 --- a/src/main/java/net/casper/litmus/verification/helper/DeployHeaderHelper.java +++ b/src/main/java/net/casper/litmus/verification/helper/DeployHeaderHelper.java @@ -18,7 +18,7 @@ */ public class DeployHeaderHelper { - public static DeployHeader buildHeader(final Deploy deploy) { + public static DeployHeader cloneHeader(final Deploy deploy) { try { return buildDeployHeader(