feat: add support for cached wallets in cosmos#69
Conversation
Greptile SummaryThis PR adds support for reading pre-cached Ethereum-format wallet files in the Cosmos runner, allowing wallets generated by the Ethereum runner to be reused on EVM-compatible Cosmos chains. The implementation follows the pattern already established in
Confidence Score: 3/5Not safe to merge as-is — a realistic misconfiguration can cause a runtime panic in the bootstrapped wallet distribution. One P1 finding: when the cache has fewer wallets than spec.NumWallets and spec.InitialWallets is configured between those two values, the bootstrapped distribution receives an out-of-bounds receiver index and panics. This is a present defect on a real code path introduced by this PR. chains/cosmos/wallet/cache.go — the num > len(cachedKeys) case needs an error return rather than silent truncation. Important Files Changed
|
No description provided.