isPluginEnabled method
Implementation
Future<bool> isPluginEnabled(String pluginAddress) async {
try {
await checkIfInitialized();
if (!isInitialized!) throw Exception("Smart wallet not initialized");
bool isEnabled = await contract.call("isModuleEnabled", [pluginAddress]);
return isEnabled;
} on Exception catch (e) {
print(e);
throw Exception("Could not check if plugin is enabled");
}
}