h-be / acorn-hc

the holochain backend for Acorn
Other
30 stars 5 forks source link

WIP 23 create goal with parent #24

Closed qubist closed 5 years ago

qubist commented 5 years ago

This PR should close #23 when it's finished

qubist commented 5 years ago

I need some guidance here on the Holochain side: How do I have a parameter in the function that can be 'None' or an address of a parent goal? And how can I call create_edge from inside another zome function?

Connoropolous commented 5 years ago

I think you can just call create_edge like a normal call from one rust function to another :)

Connoropolous commented 5 years ago

And parent_address param can be Option

Connoropolous commented 5 years ago

Oo, @qubist ... refactor the core logic from create_edge into its own function that's not a some function, and make it be called from create_edge and create_goal

qubist commented 5 years ago

Next step: edit things in the reducers to understand the new struct that createGoal returns.