@explorins/pers-sdk-react-native 1.5.4 → 1.5.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/hooks/useTransactionSigner.d.ts.map +1 -1
- package/dist/hooks/useTransactionSigner.js +10 -2
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/react-native.esm-BtyCg4n1.js +10062 -0
- package/dist/react-native.esm-BtyCg4n1.js.map +1 -0
- package/package.json +1 -1
- package/src/hooks/useTransactionSigner.ts +11 -2
package/package.json
CHANGED
|
@@ -176,10 +176,19 @@ export const useTransactionSigner = () => {
|
|
|
176
176
|
try {
|
|
177
177
|
console.log('[useTransactionSigner] Initializing PERS transaction signer...');
|
|
178
178
|
|
|
179
|
-
//
|
|
179
|
+
// Configure the PERS service with the project key before creating SDK
|
|
180
|
+
if (config?.projectKey) {
|
|
181
|
+
console.log('[useTransactionSigner] Configuring PERS service with project key:', config.projectKey);
|
|
182
|
+
// Import and configure the PERS service
|
|
183
|
+
const { PersService } = await import('@explorins/pers-signer/react-native');
|
|
184
|
+
(PersService as any).configure({
|
|
185
|
+
projectKey: config.projectKey
|
|
186
|
+
});
|
|
187
|
+
console.log('[useTransactionSigner] PERS service configured with project key');
|
|
188
|
+
}
|
|
189
|
+
|
|
180
190
|
const signerSDK = await createPersSignerSDK({
|
|
181
191
|
tenantId: config?.tenantId,
|
|
182
|
-
// projectKey: config?.projectKey,
|
|
183
192
|
ethersProviderUrl: config?.ethersProviderUrl || DEFAULT_ETHERS_PROVIDER
|
|
184
193
|
});
|
|
185
194
|
|