File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " @openscan/hardhat-plugin" ,
3- "version" : " 1.0.1 " ,
3+ "version" : " 1.0.2 " ,
44 "description" : " Hardhat 3 plugin to use openscan explorer" ,
55 "license" : " MIT" ,
66 "type" : " module" ,
Original file line number Diff line number Diff line change @@ -28,9 +28,10 @@ async function startWebapp() {
2828 // Check if port 3030 is available (fail fast)
2929 const portAvailable = await isPortAvailable ( ) ;
3030 if ( ! portAvailable ) {
31- throw new Error (
32- "Port 3030 is already in use. Please free the port and try again ." ,
31+ console . warn (
32+ "[openscan] Warning: Port 3030 is already in use. Explorer not started ." ,
3333 ) ;
34+ return ;
3435 }
3536
3637 // Create deployment tracker and start server
Original file line number Diff line number Diff line change @@ -32,16 +32,17 @@ export async function isPortAvailable(): Promise<boolean> {
3232export async function openBrowser ( url : string ) : Promise < void > {
3333 const platform = process . platform ;
3434 let command : string ;
35+ const networkPageUrl = `${ url } /#/31337` ;
3536
3637 switch ( platform ) {
3738 case "darwin" : // macOS
38- command = `open "${ url } "` ;
39+ command = `open "${ networkPageUrl } "` ;
3940 break ;
4041 case "win32" : // Windows
41- command = `start "" "${ url } "` ;
42+ command = `start "" "${ networkPageUrl } "` ;
4243 break ;
4344 default : // Linux and others
44- command = `xdg-open "${ url } "` ;
45+ command = `xdg-open "${ networkPageUrl } "` ;
4546 break ;
4647 }
4748
You can’t perform that action at this time.
0 commit comments