Created
October 7, 2021 11:08
-
-
Save MCarlomagno/a850adee52042767c7c7d1ae688c36bb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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