Skip to content

Commit

Permalink
Merge pull request #26 from Chia-Network/develop
Browse files Browse the repository at this point in the history
release: 1.6.17
  • Loading branch information
MichaelTaylor3D authored Sep 8, 2023
2 parents 1bf2156 + c7b41b9 commit cb7abb9
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 56 deletions.
96 changes: 48 additions & 48 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "core-registry-cadt",
"version": "1.6.16",
"version": "1.6.17",
"_comment": "DONT CHANGE MAJOR UNLESS DATAMODEL CHANGES: The major version corresponds to the datamodel version your using, so 2.0.0 means it'll use datamodel v2",
"private": true,
"bin": "build/server.js",
Expand Down Expand Up @@ -59,7 +59,7 @@
},
"devDependencies": {
"@babel/cli": "^7.22.15",
"@babel/core": "^7.22.15",
"@babel/core": "^7.22.17",
"@babel/plugin-syntax-import-attributes": "^7.22.5",
"@babel/preset-env": "^7.22.15",
"@babel/register": "^7.22.15",
Expand Down
10 changes: 4 additions & 6 deletions src/models/units/units.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,17 +308,15 @@ class Unit extends Model {
let startingBlock = highestUnitBlockEnd + 1;

const transformedUnits = insertedUnits.map((unit) => {
const unitBlockStart = Math.floor(startingBlock).toString();
const unitBlockEnd = Math.floor(
startingBlock + unit.unitCount - 1,
).toString();
const unitBlockStart = Math.floor(startingBlock);
const unitBlockEnd = Math.floor(startingBlock + unit.unitCount - 1);
const serialNumberBlock = `${prefix}-${unitBlockStart}-${unitBlockEnd}`;
startingBlock = unitBlockEnd + 1;

return {
...unit,
unitBlockStart,
unitBlockEnd,
unitBlockStart: unitBlockStart.toString(),
unitBlockEnd: unitBlockEnd.toString(),
serialNumberBlock,
};
});
Expand Down

0 comments on commit cb7abb9

Please sign in to comment.