File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 45
45
fi
46
46
47
47
build-simulator :
48
- cd {{project-name}}-dbg && cargo build $( MODE_ARGS ) && cp target/$( MODE ) /* _dbg.* $(TOP ) /$(BUILD_DIR )
48
+ cd {{project-name}}-dbg && cargo build && cp target/debug /* _dbg.* $(TOP ) /$(BUILD_DIR )
49
49
50
50
# test, check, clippy and fmt here are provided for completeness,
51
51
# there is nothing wrong invoking cargo directly instead of make.
Original file line number Diff line number Diff line change @@ -88,6 +88,17 @@ impl Loader {
88
88
}
89
89
result. unwrap ( ) . into ( )
90
90
}
91
+
92
+ pub fn load_binary_dbg (
93
+ & self ,
94
+ context : & mut ckb_testtool:: context:: Context ,
95
+ name : & str ,
96
+ ) -> Bytes {
97
+ let mut path = self . 0 . clone ( ) ;
98
+ path. push ( name) ;
99
+
100
+ context. load_binary ( path)
101
+ }
91
102
}
92
103
93
104
// This helper method runs Context::verify_tx, but in case error happens,
You can’t perform that action at this time.
0 commit comments