-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
4 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
arc: 30 | ||
arc: 0030 | ||
title: Adding self.parent opcode | ||
authors: [email protected] [email protected] | ||
discussion: https://github.com/AleoHQ/ARCs/discussions/11 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ const glob = require("glob"); | |
const parseMD = require('parse-md').default; | ||
|
||
/** | ||
* arc: 1 | ||
* arc: 0001 | ||
* title: Template | ||
* authors: The Aleo Team <[email protected]> | ||
* discussion: | ||
|
@@ -127,7 +127,7 @@ const checkArcReadmeContent = async (arcDirectory) => { | |
const { metadata, content } = parseMD(fileContents); | ||
|
||
/** | ||
* arc: 1 | ||
* arc: 0001 | ||
* title: Template | ||
* authors: The Aleo Team <[email protected]> | ||
* discussion: | ||
|
@@ -147,10 +147,8 @@ const checkArcReadmeContent = async (arcDirectory) => { | |
// Check that the ARC # matches the directory #. | ||
if (metatopic === 'arc') { | ||
try { | ||
console.log("arcDirectory", arcDirectory); | ||
console.log("metadata.arc", metadata.arc); | ||
const directoryNumber = parseInt(arcDirectory.split('-')[1]); | ||
const metadataNumber = parseInt(metadata.arc); | ||
const metadataNumber = parseInt(metadata.arc, 10); | ||
if (directoryNumber !== metadataNumber) { | ||
console.error('\nARC directory ID (', arcDirectory, ') does not match the ARC ID in the README (', metadataNumber, ').\n'); | ||
process.exit(1); | ||
|