show toaster when compiler version is updated

pull/2638/head^2
Aniket-Engg 2 years ago committed by Aniket
parent f70b0c3da0
commit 310639a7da
  1. 2
      libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx

@ -375,6 +375,8 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
const compilerToLoad = semver.maxSatisfying(releasedVersions, pragma)
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)}`)
setState((prevState) => {
return { ...prevState, selectedVersion: compilerPath }
})

Loading…
Cancel
Save