예제 #1
0
 @Override
 public SolidityContract createExistingContractFromSrc(
     String soliditySrc, String contractName, byte[] contractAddress) {
   SolidityContractImpl contract = createContract(soliditySrc, contractName);
   contract.setAddress(contractAddress);
   return contract;
 }
예제 #2
0
 @Override
 public SolidityContract submitNewContract(String soliditySrc, String contractName) {
   SolidityContractImpl contract = createContract(soliditySrc, contractName);
   submitNewTx(
       new PendingTx(
           new byte[0], BigInteger.ZERO, Hex.decode(contract.getBinary()), contract, null));
   return contract;
 }
예제 #3
0
 @Override
 public SolidityContract createExistingContractFromABI(String ABI, byte[] contractAddress) {
   SolidityContractImpl contract = new SolidityContractImpl(ABI);
   contract.setAddress(contractAddress);
   return contract;
 }