rsksmart / rif-marketplace-storage

Pinning contracts
4 stars 5 forks source link

Storage deployment runs out of gas in `ganache` #155

Open julianmrodri opened 4 years ago

julianmrodri commented 4 years ago
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
julianmrodri commented 4 years ago

Removing critical label as can be user the optimizer: true in solc to avoid this issue.