All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.web3j.mavenplugin.solidity.CompilerResult Maven / Gradle / Ivy

Go to download

Mojo's web3j Maven plugin is used to create java classes based on the solidity contract files.

There is a newer version: 4.12.1
Show newest version
package org.web3j.mavenplugin.solidity;

/**
 * Container for the compile result.
 *
 */
public class CompilerResult {
    public String errors;
    public String output;
    private boolean success = false;

    public CompilerResult(String errors, String output, boolean success) {
        this.errors = errors;
        // https://ethereum.stackexchange.com/questions/11912/unable-to-define-greetercontract-in-the-greeter-tutorial-breaking-change-in-sol
        this.output = output.replaceAll(":", "");
        this.success = success;
    }

    public boolean isFailed() {
        return !success;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy