File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 " dist" ,
1717 " account" ,
1818 " ckb" ,
19+ " package-lock.json" ,
1920 " templates/v3/offckb.config.example.ts"
2021 ],
2122 "private" : false ,
Original file line number Diff line number Diff line change @@ -19,9 +19,10 @@ export function getToDeployBinsPath(userOffCKBConfigPath: string) {
1919 const match = fileContent . match ( / c o n t r a c t B i n F o l d e r : \s * [ ' " ] ( [ ^ ' " ] + ) [ ' " ] / ) ;
2020 if ( match && match [ 1 ] ) {
2121 const contractBinFolderValue = match [ 1 ] ;
22+ const folderPath = path . dirname ( userOffCKBConfigPath ) ;
2223 const binFileOrFolderPath = isAbsolutePath ( contractBinFolderValue )
2324 ? contractBinFolderValue
24- : path . resolve ( userOffCKBConfigPath , contractBinFolderValue ) ;
25+ : path . resolve ( folderPath , contractBinFolderValue ) ;
2526
2627 const bins = getBinaryFilesFromPath ( binFileOrFolderPath ) ;
2728 return bins ;
You can’t perform that action at this time.
0 commit comments