The patches are created to make cfxtruffle work correctly with openzeppelin's upgradable contracts.
Notice: The patches require the truffle-cfx-patch npm package to work. Please install truffle-cfx-patch and configure the project files FIRST.
-
Copy
*.patchto the/patchesfolder of your project. -
Add a script in
package.json:
"postinstall": "patch-package"- Install
patch-package
yarn add -D patch-packageThe patches has been tested working fine with [email protected] / @openzeppelin/[email protected], both deployProxy and upgradeProxy.