callViewFuntion method
Calls contract view functions
Implementation
Future<Map<dynamic, dynamic>> callViewFuntion(
String methodName, String methodArgs) async {
List<int> bytes = utf8.encode(methodArgs);
String base64MethodArgs = base64.encode(bytes);
return await callerAccount.provider
.callViewFunction(contractId, methodName, base64MethodArgs);
}