Commit eadfec6b authored by inphi's avatar inphi

lint

parent d3e31027
...@@ -67,11 +67,11 @@ const sortKeys = (obj: any) => { ...@@ -67,11 +67,11 @@ const sortKeys = (obj: any) => {
// ContractName.0.9.8.json -> ContractName.sol // ContractName.0.9.8.json -> ContractName.sol
// ContractName.json -> ContractName.sol // ContractName.json -> ContractName.sol
const parseArtifactName = (artifactVersionFile: string): string => { const parseArtifactName = (artifactVersionFile: string): string => {
const match = artifactVersionFile.match(/(.*?)\.([0-9]+\.[0-9]+\.[0-9]+)?/); const match = artifactVersionFile.match(/(.*?)\.([0-9]+\.[0-9]+\.[0-9]+)?/)
if (!match) { if (!match) {
throw new Error(`Invalid artifact file name: ${artifactVersionFile}`); throw new Error(`Invalid artifact file name: ${artifactVersionFile}`)
} }
return match[1]; return match[1]
} }
const main = async () => { const main = async () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment