use of org.fisco.bcos.web3j.tuples.generated.Tuple1 in project web3sdk by FISCO-BCOS.
the class Permission method getRevokeWriteOutput.
public Tuple1<BigInteger> getRevokeWriteOutput(TransactionReceipt transactionReceipt) {
String data = transactionReceipt.getOutput();
final Function function = new Function(FUNC_REVOKEWRITE, Arrays.<Type>asList(), Arrays.<TypeReference<?>>asList(new TypeReference<Int256>() {
}));
List<Type> results = FunctionReturnDecoder.decode(data, function.getOutputParameters());
;
return new Tuple1<BigInteger>((BigInteger) results.get(0).getValue());
}
Aggregations