@enclave-hq/wallet-sdk 1.1.4 → 1.1.6
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.d.mts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -0
- package/dist/index.mjs.map +1 -1
- package/dist/react/index.d.mts +5 -1
- package/dist/react/index.d.ts +5 -1
- package/dist/react/index.js +11 -0
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +11 -0
- package/dist/react/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/react/index.mjs
CHANGED
|
@@ -113,6 +113,17 @@ var WalletAdapter = class extends EventEmitter {
|
|
|
113
113
|
this.state = "disconnected" /* DISCONNECTED */;
|
|
114
114
|
this.currentAccount = null;
|
|
115
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* Get the signer's address (implements ISigner interface)
|
|
118
|
+
* Returns the native address of the current account
|
|
119
|
+
*/
|
|
120
|
+
async getAddress() {
|
|
121
|
+
this.ensureConnected();
|
|
122
|
+
if (!this.currentAccount) {
|
|
123
|
+
throw new WalletNotConnectedError(this.type);
|
|
124
|
+
}
|
|
125
|
+
return this.currentAccount.nativeAddress;
|
|
126
|
+
}
|
|
116
127
|
signTransaction(_transaction) {
|
|
117
128
|
throw new MethodNotSupportedError("signTransaction", this.type);
|
|
118
129
|
}
|