Hello guys,
I’m starting to build a daepp (actually translating one from solidity to sophia)
but I’m having a lot of problems. Right now I have the following code:

The contract compiles without the record lock_contract
, but as soon as I add it it wont compile:
Please help since time is of the essence and I have to do the whole thing quickly 
Also, can someone please tell me how can I debug my code, when I have no highlighting, no adequate error description, nothing…
A better message than just “reason: undefined” would really go a long way for us newbies and would
spare devs the time of dealing with these issues on the forums.
This compiles just fine by my side (in the online IDE):
1 Like
I tested the code in aepp-playground, it compiled, then copy-pasted it to vscode and it worked…
I must’ve messed up the identation somewhere… 
Anyway, thanks a lot! What online IDE are you using btw?