File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ sub_templates = [
7
7
" contract" ,
8
8
" atomics-contract" ,
9
9
" stack-reorder-contract" ,
10
- " add-debugger-contract "
10
+ " add-debugger" ,
11
11
# Dependency crate templates
12
12
" c-wrapper-crate" ,
13
13
" x64-simulator-crate" ,
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ generate:
123
123
sed ' /@@INSERTION_POINT@@/s/$$/\n "$(DESTINATION)\/$(CRATE)",/' Cargo.toml > Cargo.toml.new; \
124
124
mv Cargo.toml.new Cargo.toml; \
125
125
fi ; \
126
- if [ " $( ALSO_ADD_DEBUGGER) " = " true" ]; then \
126
+ if [ " $( ALSO_ADD_DEBUGGER) " = " true" ] && [ " $( TEMPLATE ) " = " contract " ] ; then \
127
127
make -C ./ add-debugger; \
128
128
fi ;
129
129
Original file line number Diff line number Diff line change 52
52
53
53
CONTRACT_CRATE=$( echo " $CONTRACT_NAME " | tr ' -' ' _' )
54
54
55
+ cargo generate $2 $3 add-debugger -n $CONTRACT_NAME -dbg --destination contracts/$CONTRACT_NAME -d contract_name=$CONTRACT_NAME -d contract_crate_name=$CONTRACT_CRATE
55
56
cd contracts/$CONTRACT_NAME
56
- cargo generate $2 $3 add-debugger -n $CONTRACT_NAME -dbg -d contract_name=$CONTRACT_NAME -d contract_crate_name=$CONTRACT_CRATE
57
57
mv $CONTRACT_NAME -dbg/src/contract-lib.rs src/lib.rs
58
58
echo " Finally, you need to add a feature to the contract's Cargo.toml:"
59
59
echo " simulator = [" ckb-std/simulator" ]"
You can’t perform that action at this time.
0 commit comments