File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
packages/cli/src/commands Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -112,10 +112,9 @@ export default class AddCommand extends Command {
112
112
) ,
113
113
) ;
114
114
if ( impl ) {
115
- const useImplementation = await prompt . confirm (
116
- `Proxy contract detected. Use current implementation contract ABI at ${ impl } ?` ,
117
- true ,
118
- ) ;
115
+ const useImplementation = await prompt
116
+ . confirm ( `Proxy contract detected. Use implementation contract ABI at ${ impl } ?` , true )
117
+ . catch ( ( ) => false ) ;
119
118
120
119
if ( useImplementation ) {
121
120
implAddress = impl ;
Original file line number Diff line number Diff line change @@ -635,10 +635,12 @@ async function processInitForm(
635
635
) ;
636
636
initDebugger . extend ( 'processInitForm' ) ( "proxyImplementation: '%s'" , impl ) ;
637
637
if ( impl ) {
638
- const useImplementation = await prompt . confirm (
639
- `Proxy contract detected. Use current implementation contract ABI at ${ impl } ?` ,
640
- true ,
641
- ) ;
638
+ const useImplementation = await prompt
639
+ . confirm (
640
+ `Proxy contract detected. Use implementation contract ABI at ${ impl } ?` ,
641
+ true ,
642
+ )
643
+ . catch ( ( ) => false ) ;
642
644
643
645
if ( useImplementation ) {
644
646
implAddress = impl ;
You can’t perform that action at this time.
0 commit comments