StateVariable.contract()
Returns state variable's parent contract if it exists.
contract() →
Contract
| NoneObject
The function returns the Contract object (if exists, otherwise NoneObject) of the contract where the state variable is declared.
Query Example
Output
Last updated