0

I have functions:

token_contract.functions.name().call()

token_contract.functions.symbol().call()

Is it possible to parametrize functions methods (name,symbol)

So that I can call for example:

def get_function_data(function_parameter):
  data = token_contract.functions.function_parameter().call()
  return data

So that it would be possible to call:

name = get_function_data("name")

symbol = get_function_data("symbol")
Nir Vana
  • 347
  • 2
  • 8

0 Answers0