@zubari/sdk 0.4.1 → 0.4.2
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 +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/dist/protocols/index.js +1 -1
- package/dist/protocols/index.js.map +1 -1
- package/dist/protocols/index.mjs +1 -1
- package/dist/protocols/index.mjs.map +1 -1
- package/dist/react/index.js +3 -3
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +3 -3
- package/dist/react/index.mjs.map +1 -1
- package/dist/services/index.js +3 -3
- package/dist/services/index.js.map +1 -1
- package/dist/services/index.mjs +3 -3
- package/dist/services/index.mjs.map +1 -1
- package/dist/wallet/index.js +3 -3
- package/dist/wallet/index.js.map +1 -1
- package/dist/wallet/index.mjs +3 -3
- package/dist/wallet/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/wallet/index.js
CHANGED
|
@@ -367,7 +367,7 @@ function deriveEthereumAddress(seed) {
|
|
|
367
367
|
const hdNode = ethers.HDNodeWallet.fromPhrase(seed, void 0, DERIVATION_PATHS2.ethereum);
|
|
368
368
|
return hdNode.address;
|
|
369
369
|
}
|
|
370
|
-
function deriveBitcoinAddress(seed, network = "
|
|
370
|
+
function deriveBitcoinAddress(seed, network = "mainnet") {
|
|
371
371
|
try {
|
|
372
372
|
const seedBytes = bip39.mnemonicToSeedSync(seed);
|
|
373
373
|
const hdKey = bip32.HDKey.fromMasterSeed(seedBytes);
|
|
@@ -461,7 +461,7 @@ function deriveTronAddress(seed) {
|
|
|
461
461
|
throw error;
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
function deriveSparkAddress(seed, network = "
|
|
464
|
+
function deriveSparkAddress(seed, network = "mainnet") {
|
|
465
465
|
try {
|
|
466
466
|
const seedBytes = bip39.mnemonicToSeedSync(seed);
|
|
467
467
|
const hdKey = bip32.HDKey.fromMasterSeed(seedBytes);
|
|
@@ -481,7 +481,7 @@ function deriveSparkAddress(seed, network = "testnet") {
|
|
|
481
481
|
throw error;
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
|
-
async function deriveAllAddresses(seed, network = "
|
|
484
|
+
async function deriveAllAddresses(seed, network = "mainnet") {
|
|
485
485
|
const addresses = {
|
|
486
486
|
ethereum: null,
|
|
487
487
|
bitcoin: null,
|