getContract<T extends TronBaseContract> method
T
getContract<T extends TronBaseContract>()
Implementation
T getContract<T extends TronBaseContract>() {
if (contract.isEmpty) {
throw const TronPluginException("Transaction contains no contract.");
}
return contract[0].parameter.value.cast();
}