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

Support JSON RPC methods web3_clientVersion and eth_getStorageAt #306

Open
abcoathup opened this issue Aug 27, 2019 · 0 comments
Open

Support JSON RPC methods web3_clientVersion and eth_getStorageAt #306

abcoathup opened this issue Aug 27, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@abcoathup
Copy link

Support JSON RPC methods web3_clientVersion and eth_getStorageAt in loom-truffle-provider

OpenZeppelin SDK uses web3_clientVersion and eth_getStorageAt and is needed to support deploying OpenZeppelin SDK upgradeable contracts.

See ZWeb3.ts for web3 methods used:
https://github.com/OpenZeppelin/openzeppelin-sdk/blob/master/packages/lib/src/artifacts/ZWeb3.ts

For web3_clientVersion can addCustomMethod

const loomProvider = loomTruffleProvider.getProviderEngine()

loomProvider.addCustomMethod('web3_clientVersion', payload => {
  return 'Loom/v1.0.0/loom-js'
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants