I am converting array of hash into a string then store it in the smart contract. It is throwing error as;
transact to Test.set errored: Error encoding arguments: SyntaxError: Unexpected number in JSON at position 46
Array: [0xca35b7d915458ef540ade6068dfe2f44e8fa733c,0xca35b7d915458ef540ade6068dfe2f44e8fa733c,0xca35b7d915458ef540ade6068dfe2f44e8fa733c,0xca35b7d915458ef540ade6068dfe2f44e8fa733c,0xca35b7d915458ef540ade6068dfe2f44e8fa733c,0xca35b7d915458ef540ade6068dfe2f44e8fa733c,0xca35b7d915458ef540ade6068dfe2f44e8fa733c,0xca35b7d915458ef540ade6068dfe2f44e8fa733c,0xca35b7d915458ef540ade6068dfe2f44e8fa733c,0xca35b7d915458ef540ade6068dfe2f44e8fa733c]
It is working fine when length of array is 2, more than this it is not working.
pragma solidity ^0.4.24;
contract Test {
string public t;
function set(string _t) public {
t = _t;
}
}
Conversion from array to string is handle by a separate javascript.