use of org.web3j.tx.gas.DefaultGasProvider in project winery by eclipse.
the class ContractDeployer method deployAuthorization.
/**
* Deploys the authorization smart contract.
*
* @return Address of the smart Contract that was deployed
*/
public String deployAuthorization() throws Exception {
final StaticGasProvider provider = new DefaultGasProvider();
Authorization authorization = Authorization.deploy(web3j, credentials, provider).send();
LOGGER.debug("Provenance SC Address: " + authorization.getContractAddress());
return authorization.getContractAddress();
}
use of org.web3j.tx.gas.DefaultGasProvider in project winery by eclipse.
the class ContractDeployer method deployProvenance.
/**
* Deploys the provenance smart contract
*
* @return Address of the smart Contract that was deployed
*/
public String deployProvenance() throws Exception {
final StaticGasProvider provider = new DefaultGasProvider();
Provenance provenance = Provenance.deploy(web3j, credentials, provider).send();
LOGGER.debug("Provenance SC Address: " + provenance.getContractAddress());
return provenance.getContractAddress();
}
Aggregations