@net-protocol/cli 0.1.19 → 0.1.21
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/cli/index.mjs +6 -0
- package/dist/cli/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/cli/index.mjs
CHANGED
|
@@ -1250,6 +1250,8 @@ async function encodeStorageUpload(options) {
|
|
|
1250
1250
|
if (options.privateKey) {
|
|
1251
1251
|
const account = privateKeyToAccount(options.privateKey);
|
|
1252
1252
|
operatorAddress = account.address;
|
|
1253
|
+
} else if (options.address) {
|
|
1254
|
+
operatorAddress = options.address;
|
|
1253
1255
|
} else {
|
|
1254
1256
|
operatorAddress = "0x0000000000000000000000000000000000000000";
|
|
1255
1257
|
}
|
|
@@ -1310,6 +1312,9 @@ function registerStorageCommand(program2) {
|
|
|
1310
1312
|
).option(
|
|
1311
1313
|
"--encode-only",
|
|
1312
1314
|
"Output transaction data as JSON instead of executing"
|
|
1315
|
+
).option(
|
|
1316
|
+
"--address <address>",
|
|
1317
|
+
"Operator address (0x-prefixed). Used with --encode-only when no private key is provided"
|
|
1313
1318
|
).option(
|
|
1314
1319
|
"--chunk-size <bytes>",
|
|
1315
1320
|
`Max chunk size in bytes for splitting large files (default: ${OPTIMAL_CHUNK_SIZE})`,
|
|
@@ -1322,6 +1327,7 @@ function registerStorageCommand(program2) {
|
|
|
1322
1327
|
storageKey: options.key,
|
|
1323
1328
|
text: options.text,
|
|
1324
1329
|
privateKey: options.privateKey,
|
|
1330
|
+
address: options.address,
|
|
1325
1331
|
chainId: options.chainId,
|
|
1326
1332
|
rpcUrl: options.rpcUrl,
|
|
1327
1333
|
chunkSize: options.chunkSize
|