'Deploy solidity contract on solana

I'm new at solana network and I'm trying to deploy an smart contract programmed in solidity to solana dev network and it give me this error:

TransactionError: invalid account data for instruction
    at parseTransactionError (D:\www\aurea\Smart Contract\node_modules\@solana\solidity\lib\logs.js:161:31)
    at D:\www\aurea\Smart Contract\node_modules\@solana\solidity\lib\logs.js:123:27
    at Generator.throw (<anonymous>)
    at rejected (D:\www\aurea\Smart Contract\node_modules\@solana\solidity\lib\logs.js:6:65)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5) {
  logs: [
    'Program 11111111111111111111111111111111 invoke [1]',
    'Program 11111111111111111111111111111111 success',
    'Program r95XByUMbnzJgA6ww6EEw8Ypthy3WpLDEGc15tEqidk invoke [1]',
    'Program r95XByUMbnzJgA6ww6EEw8Ypthy3WpLDEGc15tEqidk consumed 464 of 1400000 compute units',
    'Program r95XByUMbnzJgA6ww6EEw8Ypthy3WpLDEGc15tEqidk failed: invalid account data for instruction'
  ],
  computeUnitsUsed: 464
}

I followed this guide: https://morioh.com/p/5b12095f54a3 and with the example smart contract it work as expected but when I put my solidity smart contract it give me the error when I try to await contract.deploy('flipper', [true], program, storage, 17); I modified the constructor parameters with the needed parameters of the new smart contract, another question that I have is the last parameter of this deploy what is exactly? and what this error mean?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source