scatter-js
scatter-js copied to clipboard
Scatter plugin system proxy transforms Api properties to methods eosjs2
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 Were you able to use the internal properties of the Proxy for the plugin eosjs2?