-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
synthetix-router/src/compile.ts
Line 27 in 35a629c
return solResult.contracts[`${contractName}.sol`][contractName]; |
solResult may come with error and we are not catching it
solResult {
errors: [
{
component: 'general',
formattedMessage: 'Invalid EVM version requested.',
message: 'Invalid EVM version requested.',
severity: 'error',
type: 'JSONError'
}
]
}
Instead it fails with
An unexpected error occurred:
TypeError: Cannot read properties of undefined (reading 'AccountRouter.sol')
at compileContract (/node_modules/@synthetixio/router/src/compile.ts:22:1)
Metadata
Metadata
Assignees
Labels
No labels