Unable to get the response from the Proxy contract following the ZeppelinOS unstructured storage article

Has anyone followed the scripts mentioned in this article (https://blog.zeppelinos.org/upgradeability-using-unstructured-storage/) just before the conclusion section with web3v1.0.X? I would like to know the script executed for web3v1 and would want to try it again.

Hey @ayushgupta0610, welcome to the forum! At first glance, the only changes needed to run those scripts using web3 1.0.0-beta.37 and truffle 5 are:

  • Changing web3.eth.accounts to await web3.eth.getAccounts()
  • Adding an await statement on every line that deploys or instantiates a contract (.new or .at)

Let us know if you get it to work!

1 Like

Thanks @spalladino, it works like a charm now!