@yamo/cli 1.3.4 → 1.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -165,9 +165,9 @@ program
|
|
|
165
165
|
let resolvedPreviousBlock = options.prev;
|
|
166
166
|
if (!resolvedPreviousBlock) {
|
|
167
167
|
console.log(chalk_1.default.blue(`[INFO] No previousBlock provided, fetching latest block from chain...`));
|
|
168
|
-
const
|
|
169
|
-
if (
|
|
170
|
-
resolvedPreviousBlock =
|
|
168
|
+
const latestHash = await chainClient.getLatestBlockHash();
|
|
169
|
+
if (latestHash && latestHash !== "0x0000000000000000000000000000000000000000000000000000000000000000") {
|
|
170
|
+
resolvedPreviousBlock = latestHash;
|
|
171
171
|
console.log(chalk_1.default.green(`[INFO] Using latest block's contentHash: ${resolvedPreviousBlock}`));
|
|
172
172
|
}
|
|
173
173
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamo/cli",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.9",
|
|
4
4
|
"description": "YAMO Protocol v0.4 - Command-line tools for blockchain integration",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"typescript": "^5.9.3"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@yamo/core": "^1.2.
|
|
46
|
+
"@yamo/core": "^1.2.12",
|
|
47
47
|
"axios": "^1.13.2",
|
|
48
48
|
"chalk": "^4.1.2",
|
|
49
49
|
"commander": "^12.0.0",
|