@zubari/sdk 0.4.0 → 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.
@@ -1085,7 +1085,7 @@ function deriveEthereumAddress(seed) {
1085
1085
  const hdNode = HDNodeWallet.fromPhrase(seed, void 0, DERIVATION_PATHS.ethereum);
1086
1086
  return hdNode.address;
1087
1087
  }
1088
- function deriveBitcoinAddress(seed, network = "testnet") {
1088
+ function deriveBitcoinAddress(seed, network = "mainnet") {
1089
1089
  try {
1090
1090
  const seedBytes = mnemonicToSeedSync(seed);
1091
1091
  const hdKey = HDKey.fromMasterSeed(seedBytes);
@@ -1179,7 +1179,7 @@ function deriveTronAddress(seed) {
1179
1179
  throw error;
1180
1180
  }
1181
1181
  }
1182
- function deriveSparkAddress(seed, network = "testnet") {
1182
+ function deriveSparkAddress(seed, network = "mainnet") {
1183
1183
  try {
1184
1184
  const seedBytes = mnemonicToSeedSync(seed);
1185
1185
  const hdKey = HDKey.fromMasterSeed(seedBytes);
@@ -1199,7 +1199,7 @@ function deriveSparkAddress(seed, network = "testnet") {
1199
1199
  throw error;
1200
1200
  }
1201
1201
  }
1202
- async function deriveAllAddresses(seed, network = "testnet") {
1202
+ async function deriveAllAddresses(seed, network = "mainnet") {
1203
1203
  const addresses = {
1204
1204
  ethereum: null,
1205
1205
  bitcoin: null,
@@ -1776,7 +1776,7 @@ var TransactionService = class {
1776
1776
  wallets = {};
1777
1777
  constructor(config = {}) {
1778
1778
  this.config = {
1779
- network: config.network || "testnet",
1779
+ network: config.network || "mainnet",
1780
1780
  rpcUrls: config.rpcUrls
1781
1781
  };
1782
1782
  }