|
|
|
@ -376,7 +376,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => { |
|
|
|
|
const compilerPath = state.allversions.filter(obj => !obj.prerelease && obj.version === compilerToLoad)[0].path |
|
|
|
|
if (state.selectedVersion !== compilerPath) { |
|
|
|
|
// @ts-ignore
|
|
|
|
|
api.call('notification', 'toast', `updating compiler to best suited version according to pragma i.e ${_retrieveVersion(compilerPath)}`) |
|
|
|
|
api.call('notification', 'toast', `Updating compiler version to match current contract file pragma i.e ${_retrieveVersion(compilerPath)}`) |
|
|
|
|
setState((prevState) => { |
|
|
|
|
return { ...prevState, selectedVersion: compilerPath } |
|
|
|
|
}) |
|
|
|
|