starknet.dart icon indicating copy to clipboard operation
starknet.dart copied to clipboard

Hardcoded chainId and provider in wallet_provider.dart

Open redDwarf03 opened this issue 6 months ago • 0 comments

I was looking into the wallet_provider.dart file and noticed that both the chainId and provider values seem to be hardcoded here.

return s.Account(
      accountAddress: s.Felt.fromHexString(account.address),
      chainId: s.Felt.fromString('KATANA'),
      provider: sp.JsonRpcProvider.devnet,
      signer: s.StarkAccountSigner(
        signer: s.StarkSigner(
          privateKey: s.Felt.fromHexString(privateKey),
        ),
      ),
    );

I'm wondering if this is expected behavior, or if there's a plan to make these configurable based on the connected wallet or environment? Is there something I might have missed in the architecture or intended usage of wallet_kit?

redDwarf03 avatar May 22 '25 08:05 redDwarf03