Skip to content

Fails to create wallet #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ikemHood opened this issue May 26, 2025 · 0 comments
Open

Fails to create wallet #15

ikemHood opened this issue May 26, 2025 · 0 comments

Comments

@ikemHood
Copy link

Fails to create wallet.

reproduce:

//test-wallet.ts
import { ChipiSDK } from '@chipi-pay/chipi-sdk';
import env from './src/env';

// Initialize the ChipiSDK for wallet operations
const chipiSDK = new ChipiSDK({
    apiKey: env.apiKey,
    secretKey: env.secretKey,
    appId: env.appId,
});

const wallet = await chipiSDK.createWallet("123456");

console.log(wallet);

run bun test-wallet.ts

error:

Apple@architecton backend % bun test-wallet.ts
Error detallado: 5530 |   }
5531 | }
5532 | function validateTypedData(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 % 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant