@weblock-wallet/sdk 0.1.30 → 0.1.32

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.cjs CHANGED
@@ -106124,9 +106124,9 @@ var WalletModule = class {
106124
106124
  this.options = options;
106125
106125
  this.core = core;
106126
106126
  }
106127
- async getInfo() {
106127
+ async getInfo(str) {
106128
106128
  try {
106129
- console.log("1. \uB85C\uADF8\uC778 \uC0C1\uD0DC \uD655\uC778 \uC2DC\uC791");
106129
+ console.log("1. \uB85C\uADF8\uC778 \uC0C1\uD0DC \uD655\uC778 \uC2DC\uC791: ", str);
106130
106130
  const isLoggedIn = await this.core.auth.isLoggedIn();
106131
106131
  console.log("\uB85C\uADF8\uC778 \uC0C1\uD0DC:", isLoggedIn);
106132
106132
  if (!isLoggedIn) {
@@ -106166,6 +106166,12 @@ var WalletModule = class {
106166
106166
  network.chainId
106167
106167
  );
106168
106168
  console.log("\uB124\uC774\uD2F0\uBE0C \uD1A0\uD070 \uC794\uC561:", nativeBalance);
106169
+ const tokenBalance = await this.core.wallet.getTokenBalance(
106170
+ "0x6fa62Eda03956ef4E54f3C8597E8c3f3bE40A45B",
106171
+ "0x57a0799F04246DC7119AEd7c64fD2675b769FEff",
106172
+ network.chainId
106173
+ );
106174
+ console.log(">>>> tokenBalance: ", tokenBalance);
106169
106175
  console.log("5. \uCD5C\uADFC \uD2B8\uB79C\uC7AD\uC158 \uC870\uD68C \uC2DC\uC791");
106170
106176
  const latestTransaction = await this.core.wallet.getLatestTransaction(
106171
106177
  address,
@@ -106374,8 +106380,8 @@ var WeBlockSDK = class {
106374
106380
  }
106375
106381
  };
106376
106382
  this.wallet = {
106377
- getInfo: async () => {
106378
- return this.walletModule.getInfo();
106383
+ getInfo: async (str) => {
106384
+ return this.walletModule.getInfo(str);
106379
106385
  },
106380
106386
  onWalletUpdate: (callback) => {
106381
106387
  return this.walletModule.onWalletUpdate(callback);