callSmartContractFunction method
Implementation
Future<BlockchainResponse> callSmartContractFunction({
required TransferRequest transferRequest,
}) async {
if (blockchainServices[transferRequest.blockchainType] == null) {
throw Exception('Incorrect Blockchain');
}
final res = await blockchainServices[transferRequest.blockchainType]
?.callSmartContractFunction(transferRequest);
if (res == null) {
throw Exception('Incorrect Smart Contract Call');
}
return res;
}