GetScatter / scatter-js

Importable JavaScript library that allows web applications to directly interface with Scatter Desktop, Classic and Mobile.
MIT License
262 stars 149 forks source link

Scatter plugin system proxy transforms Api properties to methods eosjs2 #109

Open mmcs85 opened 5 years ago

mmcs85 commented 5 years ago

Hello there, I'm trying to access scatter.eos instance properties but they are transformed into augmented function call's as per the proxy implementation on plugin eosjs2.

check here: https://github.com/GetScatter/scatter-js/blob/master/packages/plugin-eosjs2/src/index.js#L74

Proxy getter is applied not only to methods but also internal properties like rpc and chainId

This makes it impossible to use this properties.

But on the eosjs plugin its filtered: https://github.com/GetScatter/scatter-js/blob/master/packages/plugin-eosjs/src/index.js#L49

emmanuel-ma commented 4 years ago

@mmcs85 Were you able to use the internal properties of the Proxy for the plugin eosjs2?