Skip to content

Commit

Permalink
Merge pull request #45 from AlexandrouR/master
Browse files Browse the repository at this point in the history
Implemented getCode.
  • Loading branch information
antonydenyer committed Dec 9, 2019
2 parents b9045dc + 739ba9e commit f61d364
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -19,6 +19,7 @@
import org.web3j.protocol.Web3j;
import org.web3j.protocol.core.DefaultBlockParameter;
import org.web3j.protocol.core.methods.request.Transaction;
import org.web3j.protocol.core.methods.response.EthGetCode;
import org.web3j.protocol.core.methods.response.EthSendTransaction;
import org.web3j.quorum.Quorum;
import org.web3j.quorum.methods.request.PrivateTransaction;
Expand Down Expand Up @@ -117,4 +118,10 @@ public String sendCall(String to, String data, DefaultBlockParameter defaultBloc
.send()
.getValue();
}

@Override
public EthGetCode getCode(String contractAddress, DefaultBlockParameter defaultBlockParameter)
throws IOException {
return quorum.ethGetCode(contractAddress, defaultBlockParameter).send();
}
}

0 comments on commit f61d364

Please sign in to comment.