I have the following defined struct:
// A struct that holds all the data for a single plot of land
struct Land {
bytes32 geoPoint1;
bytes32 geoPoint2;
bytes32 geoPoint3;
bytes32 geoPoint4;
address owner;
}
and I call it using the following
Land memory _land = Land({
geoPoint1: _geoPoint1,
geoPoint2: _geoPoint2,
geoPoint3: _geoPoint3,
geoPoint4: _geoPoint4
owner: ?????
});
uint256 landID = landRegister.push(_land) - 1;
What do I put into the owner field because I want to leave that as "empty" i.e.
0x0000000000000000000000000000000000000000
When someone purchases this item the field will be completed. If I leave it blank I get errors in Remix stating that there are not the expected number of fields for the struct.
Thanks