Similar questions have been asked before, and I have read them but am stuck after using encode_single. If I pass the resulting bytes into my solidity function it says "expected list or tuple, got bytes"
Here is my encoding ->
depositdata=encode_single('(string,address,address[],uint256[],uint256[],bytes[])',('aave','0x6b175474e89094c44da98b954eedeac495271d0f',['0x6b175474e890 94c44da98b954eedeac495271d0f'],[100],[250000000000000000000],[]))
It outputs a properly encoded bytes section. However, when I pass it into my solidity function, even as [depositdata], I get the same error.
Any ideas?