I live with this Error for two month -on https://remix.ethereum.org

transact to FlashLoan.executeOperation errored: Error encoding arguments: Error: types/values length mismatch (count={“types”:5,“values”:7}, value={“types”:[“address[]”,“uint256[]”,“uint256[]”,“address”,“bytes”],“values”:[“”,“, 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48”,“”,“, 1000000”,“”,“, 1000000”,"]}, code=INVALID_ARGUMENT, version=abi/5.5.0

The function at hand takes 5 input values:

  1. address[]
  2. uint256[]
  3. uint256[]
  4. address
  5. bytes

But you are calling it with 7 input values.


  1. address[] Dai,usdc
  2. uint256[]1000000000000000000,1000000
  3. uint256[]1000000000000000000,1000000

I believe that you need to provided the addresses of DAI and USDC, not the (string) symbols.

Arguments passed to Array in the remix is as follows:

Also, It looks like you are passing arguments with a leading space. Check if this is it. If so, this is the reason for the error.

1 Like

Thank you @Sha256-solc ! :muscle:

Did this help you @lovsolidity ?

1 Like

Thanks any way ! i will test it again !

Please confirm if this worked for you.

Hi! it is not work i need one years to work on it :thinking:

I dont understood. Explain, please.

I believe the user is not interested to work on this anymore as he needs 1 year (?) of development time.