@Test public void tryDeployAfterUsingWrongConstructor() throws IOException { SmartContract sc = new SmartContract(NEO_SCRIPT_HASH, this.neow); expectedException.expect(IllegalStateException.class); sc.deploy(); }
public TransactionBuilder deploy() throws JsonProcessingException { if (nefFile == null) { throw new IllegalStateException("This smart contract instance was not constructed for" + " deployment. It is missing its NEF file."); } byte[] script = new ScriptBuilder() .pushData(objectMapper.writeValueAsBytes(manifest)) .pushData(nefFile.getScript()) .sysCall(InteropServiceCode.SYSTEM_CONTRACT_CREATE) .toArray(); return new TransactionBuilder(neow) .script(script); }
SmartContract { public TransactionBuilder deploy() throws JsonProcessingException { if (nefFile == null) { throw new IllegalStateException("This smart contract instance was not constructed for" + " deployment. It is missing its NEF file."); } byte[] script = new ScriptBuilder() .pushData(objectMapper.writeValueAsBytes(manifest)) .pushData(nefFile.getScript()) .sysCall(InteropServiceCode.SYSTEM_CONTRACT_CREATE) .toArray(); return new TransactionBuilder(neow) .script(script); } }
SmartContract { public TransactionBuilder deploy() throws JsonProcessingException { if (nefFile == null) { throw new IllegalStateException("This smart contract instance was not constructed for" + " deployment. It is missing its NEF file."); } byte[] script = new ScriptBuilder() .pushData(objectMapper.writeValueAsBytes(manifest)) .pushData(nefFile.getScript()) .sysCall(InteropServiceCode.SYSTEM_CONTRACT_CREATE) .toArray(); return new TransactionBuilder(neow) .script(script); } SmartContract(ScriptHash scriptHash, Neow3j neow);  SmartContract(File nef, File manifestFile, Neow3j neow);  SmartContract(NefFile nefFile, ContractManifest manifest, Neow3j neow); }
SmartContract { public TransactionBuilder deploy() throws JsonProcessingException { if (nefFile == null) { throw new IllegalStateException("This smart contract instance was not constructed for" + " deployment. It is missing its NEF file."); } byte[] script = new ScriptBuilder() .pushData(objectMapper.writeValueAsBytes(manifest)) .pushData(nefFile.getScript()) .sysCall(InteropServiceCode.SYSTEM_CONTRACT_CREATE) .toArray(); return new TransactionBuilder(neow) .script(script); } SmartContract(ScriptHash scriptHash, Neow3j neow);  SmartContract(File nef, File manifestFile, Neow3j neow);  SmartContract(NefFile nefFile, ContractManifest manifest, Neow3j neow); TransactionBuilder invokeFunction(String function,
            ContractParameter... contractParameters); String callFuncReturningString(String function, ContractParameter... params); BigInteger callFuncReturningInt(String function, ContractParameter... params); NeoInvokeFunction callInvokeFunction(String function, Signer... signers); NeoInvokeFunction callInvokeFunction(String function, List<ContractParameter> params,
            Signer... signers); ScriptHash getScriptHash(); NefFile getNefFile(); ContractManifest getManifest(); TransactionBuilder deploy(); }
SmartContract { public TransactionBuilder deploy() throws JsonProcessingException { if (nefFile == null) { throw new IllegalStateException("This smart contract instance was not constructed for" + " deployment. It is missing its NEF file."); } byte[] script = new ScriptBuilder() .pushData(objectMapper.writeValueAsBytes(manifest)) .pushData(nefFile.getScript()) .sysCall(InteropServiceCode.SYSTEM_CONTRACT_CREATE) .toArray(); return new TransactionBuilder(neow) .script(script); } SmartContract(ScriptHash scriptHash, Neow3j neow);  SmartContract(File nef, File manifestFile, Neow3j neow);  SmartContract(NefFile nefFile, ContractManifest manifest, Neow3j neow); TransactionBuilder invokeFunction(String function,
            ContractParameter... contractParameters); String callFuncReturningString(String function, ContractParameter... params); BigInteger callFuncReturningInt(String function, ContractParameter... params); NeoInvokeFunction callInvokeFunction(String function, Signer... signers); NeoInvokeFunction callInvokeFunction(String function, List<ContractParameter> params,
            Signer... signers); ScriptHash getScriptHash(); NefFile getNefFile(); ContractManifest getManifest(); TransactionBuilder deploy();  }