@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.
@@ -1087,7 +1087,7 @@ function deriveEthereumAddress(seed) {
1087
1087
  const hdNode = ethers.HDNodeWallet.fromPhrase(seed, void 0, DERIVATION_PATHS.ethereum);
1088
1088
  return hdNode.address;
1089
1089
  }
1090
- function deriveBitcoinAddress(seed, network = "testnet") {
1090
+ function deriveBitcoinAddress(seed, network = "mainnet") {
1091
1091
  try {
1092
1092
  const seedBytes = bip39.mnemonicToSeedSync(seed);
1093
1093
  const hdKey = bip32.HDKey.fromMasterSeed(seedBytes);
@@ -1181,7 +1181,7 @@ function deriveTronAddress(seed) {
1181
1181
  throw error;
1182
1182
  }
1183
1183
  }
1184
- function deriveSparkAddress(seed, network = "testnet") {
1184
+ function deriveSparkAddress(seed, network = "mainnet") {
1185
1185
  try {
1186
1186
  const seedBytes = bip39.mnemonicToSeedSync(seed);
1187
1187
  const hdKey = bip32.HDKey.fromMasterSeed(seedBytes);
@@ -1201,7 +1201,7 @@ function deriveSparkAddress(seed, network = "testnet") {
1201
1201
  throw error;
1202
1202
  }
1203
1203
  }
1204
- async function deriveAllAddresses(seed, network = "testnet") {
1204
+ async function deriveAllAddresses(seed, network = "mainnet") {
1205
1205
  const addresses = {
1206
1206
  ethereum: null,
1207
1207
  bitcoin: null,
@@ -1778,7 +1778,7 @@ var TransactionService = class {
1778
1778
  wallets = {};
1779
1779
  constructor(config = {}) {
1780
1780
  this.config = {
1781
- network: config.network || "testnet",
1781
+ network: config.network || "mainnet",
1782
1782
  rpcUrls: config.rpcUrls
1783
1783
  };
1784
1784
  }