@enclave-hq/wallet-sdk 1.1.4 → 1.1.5

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.mjs CHANGED
@@ -150,6 +150,17 @@ var WalletAdapter = class extends EventEmitter {
150
150
  this.state = "disconnected" /* DISCONNECTED */;
151
151
  this.currentAccount = null;
152
152
  }
153
+ /**
154
+ * Get the signer's address (implements ISigner interface)
155
+ * Returns the native address of the current account
156
+ */
157
+ async getAddress() {
158
+ this.ensureConnected();
159
+ if (!this.currentAccount) {
160
+ throw new WalletNotConnectedError(this.type);
161
+ }
162
+ return this.currentAccount.nativeAddress;
163
+ }
153
164
  signTransaction(_transaction) {
154
165
  throw new MethodNotSupportedError("signTransaction", this.type);
155
166
  }