Deploy to Alastria Network

ÓSCAR asked on Telegram:

I would like to know if there is any problem when deploying in Alastria network contracts inherited from OpenZeppelin contracts.

Deploying in Ganache a contract that inherits from ERC20, ERC20Detailed and Ownable is not a problem, it always deploys correctly.

However, when I try to deploy it via truffle in Alastria network the same error always occurs:
“The contract code couldn’t be stored, please check your gas limit.”.

I’m not familiar with Alastria network. Assuming it is EVM based (looks like Red T network uses Quorum), I suggest checking the EVM version of the network.

When you compile your contracts you will need to set the EVM version to match what is supported.