Skip to content

Static memory load of more than 32 bytes requested. #3361

@juanigallo

Description

@juanigallo
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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions