For example:
address[] storage;
function addAddress(address _a)
{
storage.push(_a);
}
I need somehow to call it from the web3. When I'm trying to simply send some address 0x1234… to the function in Remix I'm getting an error:
Error encoding arguments: SyntaxError: Unexpected token x in JSON at
position 2
Best Answer
Have you tried to add quotation marks? Try to insert
"0x123..."