Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mmcs85 opened this issue Mar 29, 2019 · 1 comment
Open

Comments

@mmcs85
Copy link

mmcs85 commented Mar 29, 2019

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants