With the latest changes there is no way to deploy the Storage contract to ganache. It runs out of gas when deploying all the contracts used by the plugin. This does not happen when running truffle test for example.
We need to check if this contract exceeds the maximum size. increasing the block limit in ganache and gas parameter in truffle does not fix the issue.
We have to be careful as this might also occur in RSK Testnet or Mainnet.
Might be related to the Truffle plugin which does not allow to specify gas when calling deployProxy
Starting migrations...
======================
> Network name: 'ganache'
> Network id: 8545
> Block gas limit: 15000000 (0xe4e1c0)
1_initial_migration.js
======================
Deploying 'Migrations'
----------------------
> transaction hash: 0x80d2bbc0294a333e2bfc7c3fe7b0cf9c014c257cdab4d620e7589d2abe5a969c
> Blocks: 0 Seconds: 0
> contract address: 0xe78A0F7E598Cc8b0Bb87894B0F60dD2a88d6a8Ab
> block number: 1
> block timestamp: 1603856878
> account: 0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1
> balance: 99.99671218
> gas used: 164391 (0x28227)
> gas price: 20 gwei
> value sent: 0 ETH
> total cost: 0.00328782 ETH
Deploying Storage Suite
Deploying Storage Manager Contract
Warning: Potentially unsafe deployment of StorageManager
You are using the `unsafeAllowCustomTypes` flag to skip storage checks for structs and enums.
Make sure you have manually checked the storage layout for incompatibilities.
Deploying 'StorageManager'
--------------------------
Error: *** Deployment Failed ***
"StorageManager" ran out of gas (using a value you set in your network config or deployment parameters.)
* Block limit: 15000000 (0xe4e1c0)
* Gas sent: 15000000 (0xe4e1c0)
at /Users/julian/Documents/Projects/rif-marketplace-dev/storage-dev/node_modules/truffle/build/webpack:/packages/deployer/src/deployment.js:364:1
at process._tickCallback (internal/process/next_tick.js:68:7)
Truffle v5.1.50 (core: 5.1.50)
Node v10.16.0
With the latest changes there is no way to deploy the Storage contract to
ganache
. It runs out of gas when deploying all the contracts used by the plugin. This does not happen when runningtruffle test
for example.We need to check if this contract exceeds the maximum size. increasing the
block limit
in ganache andgas
parameter in truffle does not fix the issue.We have to be careful as this might also occur in RSK Testnet or Mainnet.
Might be related to the Truffle plugin which does not allow to specify
gas
when callingdeployProxy