|
|
@ -264,7 +264,7 @@ export const CompilerApiMixin = (Base) => class extends Base { |
|
|
|
) |
|
|
|
) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
const count = (data.errors ? data.errors.filter(error => error.severity === 'error').length : 0) + data.error ? 1 : 0 |
|
|
|
const count = (data.errors ? data.errors.filter(error => error.severity === 'error').length : 0 + (data.error ? 1 : 0)) |
|
|
|
this.emit('statusChanged', { key: count, title: `compilation failed with ${count} error${count > 1 ? 's' : ''}`, type: 'error' }) |
|
|
|
this.emit('statusChanged', { key: count, title: `compilation failed with ${count} error${count > 1 ? 's' : ''}`, type: 'error' }) |
|
|
|
} |
|
|
|
} |
|
|
|
// Update contract Selection
|
|
|
|
// Update contract Selection
|
|
|
|