[Question] Update IDL
YxYL6125 opened this issue · 4 comments
YxYL6125 commented
What I want to know is what command should I execute to update the server side template code after I have modified the idl file
PureWhiteWu commented
Hello, if you want to update the idl version, you can use volo idl update
.
However, the template cannot be updated (the lib.rs
file), you need to manually add new functions you need.
YxYL6125 commented
Ok, tks~ By the way what does volo idl update
command do. I found out that just the volo.yaml
file had changed,
PureWhiteWu commented
Yes, the command only update the git revision of idl, and when you execute cargo check
or cargo build
, the code will be re-generated.
YxYL6125 commented
Ok~