scatter-js icon indicating copy to clipboard operation
scatter-js copied to clipboard

Scatter plugin system proxy transforms Api properties to methods eosjs2

Open mmcs85 opened this issue 7 years ago • 1 comments

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

mmcs85 avatar Mar 29 '19 16:03 mmcs85

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

emmanuel-ma avatar Oct 11 '19 01:10 emmanuel-ma