You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When instantiating a contract in typescript, the viewMethods and changeMethods are not accessable in the resulting object, this is due to Object.defineProperty not being allowed to definitely assign properties via the constructor. See here for reference: microsoft/TypeScript#42919
To reproduce: instantiate any contract in TypeScript with a view or change method provided in the options parameter then try to call it, you will get the TypeScript error Property "methodName" does not exist on type 'Contract'.
I'm willing to take this on, the fix is fairly straight forward.
The text was updated successfully, but these errors were encountered:
When instantiating a contract in typescript, the
viewMethods
andchangeMethods
are not accessable in the resulting object, this is due toObject.defineProperty
not being allowed to definitely assign properties via the constructor. See here for reference: microsoft/TypeScript#42919To reproduce: instantiate any contract in TypeScript with a view or change method provided in the options parameter then try to call it, you will get the TypeScript error
Property "methodName" does not exist on type 'Contract'.
I'm willing to take this on, the fix is fairly straight forward.
The text was updated successfully, but these errors were encountered: