Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ protected Contract(
contractAddress,
client,
credential,
TransactionProcessorFactory.createTransactionManager(client, credential));
TransactionProcessorFactory.createTransactionProcessor(client, credential));
}

protected static <T extends Contract> T deploy(
Expand Down Expand Up @@ -132,7 +132,7 @@ protected static <T extends Contract> T deploy(
type,
client,
credential,
TransactionProcessorFactory.createTransactionManager(client, credential),
TransactionProcessorFactory.createTransactionProcessor(client, credential),
binary,
encodedConstructor);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static Pair<String, Integer> getChainIdAndGroupId(Client client) {
}
}

public static TransactionProcessor createTransactionManager(
public static TransactionProcessor createTransactionProcessor(
Client client, CryptoKeyPair cryptoKeyPair) {
Pair<String, Integer> pair = getChainIdAndGroupId(client);
return new TransactionProcessor(client, cryptoKeyPair, pair.getRight(), pair.getLeft());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ public ContractLoader(String abiFilePath, String binaryFilePath) throws Exceptio
}

public BinInfo binInfo(String binaryFilePath) throws IOException {
if (StringUtils.isEmpty(binaryFilePath)) {
log.warn("Empty bin directory, cannot deploy any contract");
return new BinInfo(Collections.emptyMap());
}
String[] s = {"bin"};
Collection<File> fileCollection = FileUtils.listFiles(new File(binaryFilePath), s, true);
if (fileCollection.isEmpty()) {
Expand Down