我正在使用web3j库来生成一个用于我的solidity以太坊智能合约的Java封装包,我已经将该智能合约部署到区块链中,并且它已经被挖掘,现在我想使用Java封装包在Java中加载该以太坊智能合约。
java封装包是SimpleStorage
,web3j已经生成了用于加载以太坊智能合约的以下方法签名:
public static SimpleStorage load(String contractAddress, Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) {
return new SimpleStorage(contractAddress, web3j, credentials, gasPrice, gasLimit);
}
public static SimpleStorage load(String contractAddress, Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) {
return new Si