juno icon indicating copy to clipboard operation
juno copied to clipboard

Juno @task-5

Open PsychoPunkSage opened this issue 1 year ago • 5 comments

NOTE: Please don't merge it. It is an exercise PR

PsychoPunkSage avatar May 19 '24 04:05 PsychoPunkSage

Hi @rianhughes I have created a fresh PR for task-5. please have a look here. Thank You

PsychoPunkSage avatar May 19 '24 04:05 PsychoPunkSage

I tried to implement NodesFromRoot Mock... but I'm facing little difficulty in doing so... Can you please have a look at the code and tell me what I'm doing Wrong?? Or what changes I have to make??

PsychoPunkSage avatar May 19 '24 04:05 PsychoPunkSage

I tried to implement NodesFromRoot Mock... but I'm facing little difficulty in doing so... Can you please have a look at the code and tell me what I'm doing Wrong?? Or what changes I have to make??

So the code inside the mocks folder is actually autogenerated. You should enter the core directory and run go generate github.com/NethermindEth/juno/core (VSCode also has a "go generate" button on top of the interface definition - I typically just use this). Note you might have to make juno first

rianhughes avatar May 20 '24 13:05 rianhughes

I tried to implement NodesFromRoot Mock... but I'm facing little difficulty in doing so... Can you please have a look at the code and tell me what I'm doing Wrong?? Or what changes I have to make??

So the code inside the mocks folder is actually autogenerated. You should enter the core directory and run go generate github.com/NethermindEth/juno/core (VSCode also has a "go generate" button on top of the interface definition - I typically just use this). Note you might have to make juno first

After entering core dir. I ran go generate github.com/NethermindEth/juno/core but i got this error::

state.go:28: running "mockgen": exec: "mockgen": executable file not found in $PATH

I think I need to add binary/.exe file or something to the PATH var.... I am not aware about it... can you tell how to fix this??

Plus, I didn't get the part Make Juno first... What do you mean by that?? I didn't get what I need to do cause I have already build Juno...

PsychoPunkSage avatar May 23 '24 06:05 PsychoPunkSage

Hi @rianhughes I am trying to run the tests but none of them are running... I'm getting this error image

PsychoPunkSage avatar Jun 20 '24 09:06 PsychoPunkSage