@Test(expected = IllegalArgumentException.class) public void testHash256ParamCreationFromNoHexString() { String sig = "576f6f6c6f576f6f6c6f576f6f6c6f576f6f6c6ff6c6f576f6f6c6f576f6f6cg"; ContractParameter.hash256(sig); }
public static ContractParameter hash256(String hashHexString) { if (!Numeric.isValidHexString(hashHexString)) { throw new IllegalArgumentException("Argument is not a valid hex number"); } return hash256(Numeric.hexStringToByteArray(hashHexString)); }
ContractParameter { public static ContractParameter hash256(String hashHexString) { if (!Numeric.isValidHexString(hashHexString)) { throw new IllegalArgumentException("Argument is not a valid hex number"); } return hash256(Numeric.hexStringToByteArray(hashHexString)); } }
ContractParameter { public static ContractParameter hash256(String hashHexString) { if (!Numeric.isValidHexString(hashHexString)) { throw new IllegalArgumentException("Argument is not a valid hex number"); } return hash256(Numeric.hexStringToByteArray(hashHexString)); } protected  ContractParameter();  ContractParameter(String name, ContractParameterType paramType, Object value); protected  ContractParameter(String name, ContractParameterType paramType); private  ContractParameter(ContractParameterType paramType, Object value); }
ContractParameter { public static ContractParameter hash256(String hashHexString) { if (!Numeric.isValidHexString(hashHexString)) { throw new IllegalArgumentException("Argument is not a valid hex number"); } return hash256(Numeric.hexStringToByteArray(hashHexString)); } protected  ContractParameter();  ContractParameter(String name, ContractParameterType paramType, Object value); protected  ContractParameter(String name, ContractParameterType paramType); private  ContractParameter(ContractParameterType paramType, Object value); static ContractParameter string(String value); static ContractParameter array(List<ContractParameter> params); static ContractParameter array(ContractParameter... params); static ContractParameter byteArray(byte[] byteArray); static ContractParameter byteArray(String hexString); static ContractParameter byteArrayFromString(String value); static ContractParameter signature(String signatureHexString); static ContractParameter signature(byte[] signature); static ContractParameter bool(boolean bool); static ContractParameter integer(int integer); static ContractParameter integer(BigInteger integer); static ContractParameter hash160(ScriptHash hash); static ContractParameter hash256(String hashHexString); static ContractParameter hash256(byte[] hash); static ContractParameter publicKey(byte[] publicKey); String getParamName(); ContractParameterType getParamType(); Object getValue(); @Override boolean equals(Object o); @Override int hashCode(); }
ContractParameter { public static ContractParameter hash256(String hashHexString) { if (!Numeric.isValidHexString(hashHexString)) { throw new IllegalArgumentException("Argument is not a valid hex number"); } return hash256(Numeric.hexStringToByteArray(hashHexString)); } protected  ContractParameter();  ContractParameter(String name, ContractParameterType paramType, Object value); protected  ContractParameter(String name, ContractParameterType paramType); private  ContractParameter(ContractParameterType paramType, Object value); static ContractParameter string(String value); static ContractParameter array(List<ContractParameter> params); static ContractParameter array(ContractParameter... params); static ContractParameter byteArray(byte[] byteArray); static ContractParameter byteArray(String hexString); static ContractParameter byteArrayFromString(String value); static ContractParameter signature(String signatureHexString); static ContractParameter signature(byte[] signature); static ContractParameter bool(boolean bool); static ContractParameter integer(int integer); static ContractParameter integer(BigInteger integer); static ContractParameter hash160(ScriptHash hash); static ContractParameter hash256(String hashHexString); static ContractParameter hash256(byte[] hash); static ContractParameter publicKey(byte[] publicKey); String getParamName(); ContractParameterType getParamType(); Object getValue(); @Override boolean equals(Object o); @Override int hashCode();  }