@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.
@@ -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 = "testnet") {
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 = "testnet") {
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 = "testnet") {
484
+ async function deriveAllAddresses(seed, network = "mainnet") {
485
485
  const addresses = {
486
486
  ethereum: null,
487
487
  bitcoin: null,