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
*.patch
to the/patches
folder of your project. -
Add a script in
package.json
:
"postinstall": "patch-package"
- Install
patch-package
yarn add -D patch-package
The patches has been tested working fine with cfxtruffle@1.0.2
/ @openzeppelin/truffle-upgrades@1.15.0
, both deployProxy
and upgradeProxy
.