Fixed sorting in artifact generation
This commit is contained in:
parent
697e5df52d
commit
c0acc8dfdf
@ -50,7 +50,7 @@
|
||||
"homepage": "https://github.com/0xProject/0x-monorepo/contracts/tokens/README.md",
|
||||
"devDependencies": {
|
||||
"@0x/abi-gen": "^4.1.0",
|
||||
"@0x/contracts-gen": "^1.0.8",
|
||||
"@0x/contracts-gen": "^1.0.13",
|
||||
"@0x/contracts-test-utils": "^3.1.2",
|
||||
"@0x/dev-utils": "^2.2.1",
|
||||
"@0x/sol-compiler": "^3.1.6",
|
||||
|
@ -1,4 +1,13 @@
|
||||
[
|
||||
{
|
||||
"version": "1.1.1",
|
||||
"changes": [
|
||||
{
|
||||
"note": "Fixed sorting in artifact generation",
|
||||
"pr": 1910
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "1.1.0",
|
||||
"changes": [
|
||||
|
@ -79,7 +79,7 @@ function generateArtifactsTs(contracts: string[], artifactsDir: string, prettier
|
||||
const importPath = path.join('..', artifactsDir, `${contractName}.json`);
|
||||
return `import * as ${contractName} from '${importPath}';`;
|
||||
});
|
||||
const sortedImports = _.sortBy(imports);
|
||||
const sortedImports = _.sortBy(imports, _import => _import.toLowerCase());
|
||||
const artifacts = _.map(contracts, contract => {
|
||||
const contractName = path.basename(contract, SOLIDITY_EXTENSION);
|
||||
if (contractName === 'ZRXToken') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user