I have been attempting to create a simple upgradable contract using Zeppelin OS:
Following the tutorial I have been able to:
- Create a new contract
- Deploy it using zos push
- Create the proxy using zos create MyContractName --init initialize --args singleArgValue
After I have deployed I fire up truffle via truffle console --network local
and instantiate access to the contract via `contract = MyContractName.at('0xProxyDeploymentAddress')
Every attempted call
or sendTransaction
always throws with the same error:
Error: VM Exception while processing transaction: revert Cannot call fallback function from the proxy admin
at XMLHttpRequest._onHttpResponseEnd (/Users/machine-name/.nvm/versions/node/v8.11.4/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:509:1)
at XMLHttpRequest._setReadyState (/Users/machine-name/.nvm/versions/node/v8.11.4/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:354:1)
at XMLHttpRequestEventTarget.dispatchEvent (/Users/machine-name/.nvm/versions/node/v8.11.4/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:64:1)
at XMLHttpRequest.request.onreadystatechange (/Users/machine-name/.nvm/versions/node/v8.11.4/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/httpprovider.js:128:1)
at /Users/machine-name/.nvm/versions/node/v8.11.4/lib/node_modules/truffle/build/webpack:/packages/truffle-provider/wrapper.js:134:1
at /Users/machine-name/.nvm/versions/node/v8.11.4/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/requestmanager.js:86:1
at Object.InvalidResponse (/Users/machine-name/.nvm/versions/node/v8.11.4/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/errors.js:38:1)
I am able to refer to the original contract (not the proxy) and execute correctly, but everything throws on the proxy.