@Test(expected = IllegalArgumentException.class) public void testByteArrayParamCreationFromInvalidHexString() { String value = "value"; ContractParameter.byteArray(value); }
public static ContractParameter byteArray(byte[] byteArray) { return new ContractParameter(ContractParameterType.BYTE_ARRAY, Base64.encode(byteArray)); }
ContractParameter { public static ContractParameter byteArray(byte[] byteArray) { return new ContractParameter(ContractParameterType.BYTE_ARRAY, Base64.encode(byteArray)); } }
ContractParameter { public static ContractParameter byteArray(byte[] byteArray) { return new ContractParameter(ContractParameterType.BYTE_ARRAY, Base64.encode(byteArray)); } 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 byteArray(byte[] byteArray) { return new ContractParameter(ContractParameterType.BYTE_ARRAY, Base64.encode(byteArray)); } 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 byteArray(byte[] byteArray) { return new ContractParameter(ContractParameterType.BYTE_ARRAY, Base64.encode(byteArray)); } 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();  }