Skip to content

Commit

Permalink
Specify radix
Browse files Browse the repository at this point in the history
  • Loading branch information
d0cd committed Jan 22, 2025
1 parent 7aa4790 commit 3982715
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion arc-0030/README.md
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
Expand Down
8 changes: 3 additions & 5 deletions parser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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);
Expand Down

0 comments on commit 3982715

Please sign in to comment.