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.
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];
}
}