starknet.dart
starknet.dart copied to clipboard
Hardcoded chainId and provider in wallet_provider.dart
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?