@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/react/index.mjs
CHANGED
|
@@ -305,7 +305,7 @@ function deriveEthereumAddress(seed) {
|
|
|
305
305
|
const hdNode = HDNodeWallet.fromPhrase(seed, void 0, DERIVATION_PATHS2.ethereum);
|
|
306
306
|
return hdNode.address;
|
|
307
307
|
}
|
|
308
|
-
function deriveBitcoinAddress(seed, network = "
|
|
308
|
+
function deriveBitcoinAddress(seed, network = "mainnet") {
|
|
309
309
|
try {
|
|
310
310
|
const seedBytes = mnemonicToSeedSync(seed);
|
|
311
311
|
const hdKey = HDKey.fromMasterSeed(seedBytes);
|
|
@@ -399,7 +399,7 @@ function deriveTronAddress(seed) {
|
|
|
399
399
|
throw error;
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
function deriveSparkAddress(seed, network = "
|
|
402
|
+
function deriveSparkAddress(seed, network = "mainnet") {
|
|
403
403
|
try {
|
|
404
404
|
const seedBytes = mnemonicToSeedSync(seed);
|
|
405
405
|
const hdKey = HDKey.fromMasterSeed(seedBytes);
|
|
@@ -419,7 +419,7 @@ function deriveSparkAddress(seed, network = "testnet") {
|
|
|
419
419
|
throw error;
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
async function deriveAllAddresses(seed, network = "
|
|
422
|
+
async function deriveAllAddresses(seed, network = "mainnet") {
|
|
423
423
|
const addresses = {
|
|
424
424
|
ethereum: null,
|
|
425
425
|
bitcoin: null,
|