Skip to content

Instantly share code, notes, and snippets.

@0mkara
Last active July 11, 2016 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0mkara/c7f2d473ef6e061b71851515495da095 to your computer and use it in GitHub Desktop.
Save 0mkara/c7f2d473ef6e061b71851515495da095 to your computer and use it in GitHub Desktop.
Important ethereum links and notes

Native-DApps

Solidity

Type members

Raine Revere @raineorshine 23:39 I'm getting an out of gas error when I try to deploy a contract. It is not due to the control flow itself but seems to be due to the raw size of the contract. Is it possible for the bytecode to get too big at a certain point to deploy? Any recommendations? Does splitting a contract into libraries get around this issue? Thanks.

Nick Johnson @Arachnid 00:10 Yes, it is, and yes, it does.

Example of delete from a map

contract Contract {
  struct Data {
    uint a;
    uint b;
  }
  mapping (uint => Data) public items;
  function Contract() {
    items[0] = Data(1,2);
    items[1] = Data(3,4);
    items[2] = Data(5,6);
    delete items[1];
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment