pragma solidity ^0.4.4;
pragma experimental ABIEncoderV2;
contract A {
struct Pixel {
address a;
uint64 b;
string c;
uint d;
}
mapping (uint => Pixel) pixels;
function storePixel(Pixel pixel) public {
pixels[pixel.d] = pixel;
}
function getPixels() constant public returns (Pixel pixel) {
return pixels[pixel.d];
}
}
I think that this: #3272 should fix the problem but still getting the title error. If I delete the "storePixel" function or change it's scope to "internal" the code compiles but of course that is not the idea.
Any ideas ?