@hardkas/accounts 0.9.6-alpha → 0.10.0-alpha
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 +5 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -384,6 +384,10 @@ function listHardkasAccounts(config) {
|
|
|
384
384
|
}
|
|
385
385
|
if (config?.accounts) {
|
|
386
386
|
for (const [name, accConfig] of Object.entries(config.accounts)) {
|
|
387
|
+
const existing = accounts.get(name);
|
|
388
|
+
if (existing && existing.kind === "kaspa-private-key" && accConfig.kind === "simulated") {
|
|
389
|
+
continue;
|
|
390
|
+
}
|
|
387
391
|
accounts.set(name, {
|
|
388
392
|
name,
|
|
389
393
|
...accConfig
|
|
@@ -785,7 +789,7 @@ async function getOrCreateDevAccount(workspaceDir, index, alias) {
|
|
|
785
789
|
const kp = privKey.toKeypair();
|
|
786
790
|
address = kp.toAddress(network).toString();
|
|
787
791
|
publicKey = kp.publicKey;
|
|
788
|
-
privateKey =
|
|
792
|
+
privateKey = privateKeyHex;
|
|
789
793
|
} else {
|
|
790
794
|
let sdkModule;
|
|
791
795
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hardkas/accounts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0-alpha",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"hash-wasm": "^4.12.0",
|
|
21
21
|
"kaspa-wasm": "0.13.0",
|
|
22
|
-
"@hardkas/
|
|
23
|
-
"@hardkas/
|
|
24
|
-
"@hardkas/
|
|
25
|
-
"@hardkas/localnet": "0.
|
|
22
|
+
"@hardkas/artifacts": "0.10.0-alpha",
|
|
23
|
+
"@hardkas/config": "0.10.0-alpha",
|
|
24
|
+
"@hardkas/core": "0.10.0-alpha",
|
|
25
|
+
"@hardkas/localnet": "0.10.0-alpha"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"tsup": "^8.3.5",
|