Stop using deprecated web3.py interface (#1759)
* Refactor contract function call to support web3.py v5.0.0. (backwards compatible with v4)
This commit is contained in:
committed by
F. Eugene Aumson
parent
2ff5c39712
commit
6c36832f0e
@@ -1,3 +1,12 @@
|
||||
class Contract:
|
||||
def call(self): ...
|
||||
from typing import Callable
|
||||
|
||||
|
||||
class ContractFunctions:
|
||||
def __getattr__(self, function_name) -> Callable:
|
||||
...
|
||||
...
|
||||
|
||||
|
||||
class Contract:
|
||||
functions: ContractFunctions
|
||||
...
|
||||
|
Reference in New Issue
Block a user