Skip to content

Instantly share code, notes, and snippets.

@MCarlomagno
Created October 7, 2021 11:08
Show Gist options
  • Save MCarlomagno/a850adee52042767c7c7d1ae688c36bb to your computer and use it in GitHub Desktop.
Save MCarlomagno/a850adee52042767c7c7d1ae688c36bb to your computer and use it in GitHub Desktop.
Future<List<dynamic>> query(String functionName, List<dynamic> args) async {
DeployedContract contract = await getContract();
ContractFunction function = contract.function(functionName);
List<dynamic> result = await ethereumClient.call(
contract: contract, function: function, params: args);
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment