evomimic / map-proto1

Initial Proof-of-Concept of MAP Layer 0
Other
3 stars 0 forks source link

fix duplicate num_entry_types #36

Open dauphin3 opened 1 year ago

dauphin3 commented 1 year ago

from Steve:

New Theory: The hdk_entry_defs macro is building the entry_defs list and, I suspect, num_entry_types is used to hold the count of entry types. When we have multiple modules within the same integrity zome and each module includes its OWN hdk_entry_defs macro, Holochain is trying to define num_entry_types multiple times -- hence, the error.

Evidence:

Fix: Move the hdk_entry_defs (and hdk_link_defs) to the lib.rs file for the zome (i.e., remove them from the individual module files).

nphias commented 1 year ago

re-opening as branch has not been deleted