You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//test-wallet.tsimport{ChipiSDK}from'@chipi-pay/chipi-sdk';importenvfrom'./src/env';// Initialize the ChipiSDK for wallet operationsconstchipiSDK=newChipiSDK({apiKey: env.apiKey,secretKey: env.secretKey,appId: env.appId,});constwallet=awaitchipiSDK.createWallet("123456");console.log(wallet);
run bun test-wallet.ts
error:
Apple@architecton backend % bun test-wallet.ts
Error detallado: 5530 | }
5531 | }
5532 |functionvalidateTypedData(data) {
5533 | const typedData = data;
5534 |return Boolean(
5535 | typedData.message && typedData.primaryType && typedData.types && identifyRevision(typedData)
^
TypeError: undefined is not an object (evaluating 'typedData.message')
at validateTypedData (/Users/Apple/dev/hackathon/shieldly/node_modules/.pnpm/starknet@6.24.1/node_modules/starknet/dist/index.mjs:5535:5)
at getMessageHash (/Users/Apple/dev/hackathon/shieldly/node_modules/.pnpm/starknet@6.24.1/node_modules/starknet/dist/index.mjs:5747:8)
at <anonymous> (/Users/Apple/dev/hackathon/shieldly/node_modules/.pnpm/starknet@6.24.1/node_modules/starknet/dist/index.mjs:6642:21)
at signMessage (/Users/Apple/dev/hackathon/shieldly/node_modules/.pnpm/starknet@6.24.1/node_modules/starknet/dist/index.mjs:6641:21)
at signMessage (/Users/Apple/dev/hackathon/shieldly/node_modules/.pnpm/starknet@6.24.1/node_modules/starknet/dist/index.mjs:8314:21)
at <anonymous> (/Users/Apple/dev/hackathon/shieldly/node_modules/.pnpm/@chipi-pay+chipi-sdk@2.2.1_@tanstack+react-query@5.77.0_react@19.1.0__ethers@6.14.0_qs@_ce3c4d1fa852d8cd268c903b4dba67be/node_modules/@chipi-pay/chipi-sdk/dist/chunk-LSOG45ZH.mjs:138:41)
181 |if (error instanceof Error && error.message.includes("SSL")) {
182 | throw new Error(
183 |"Error de conexi\xF3n SSL. Intenta usando NODE_TLS_REJECT_UNAUTHORIZED=0 o verifica la URL del RPC"
184 | );
185 | }
186 | throw new Error(
^
error: Error creating Argent wallet: undefined is not an object (evaluating 'typedData.message')
at <anonymous> (/Users/Apple/dev/hackathon/shieldly/node_modules/.pnpm/@chipi-pay+chipi-sdk@2.2.1_@tanstack+react-query@5.77.0_react@19.1.0__ethers@6.14.0_qs@_ce3c4d1fa852d8cd268c903b4dba67be/node_modules/@chipi-pay/chipi-sdk/dist/chunk-LSOG45ZH.mjs:186:11)
Bun v1.2.4 (macOS arm64)
Apple@architecton backend %
The text was updated successfully, but these errors were encountered:
Fails to create wallet.
reproduce:
run
bun test-wallet.ts
error:
The text was updated successfully, but these errors were encountered: