pub(crate) async fn new_wallet_is_configurable(
eoa: bool,
requested: bool,
chain: Option<Chain>,
rpc: &RpcOpts,
) -> Result<bool>Expand description
Decides whether cast wallet new creates a configurable account.
It does unless eoa is set, when a Tempo signal is present and T14 is active there: --chain
(or CHAIN with requested), chain in foundry.toml, a Tempo network selected in
foundry.toml, or an RPC from --rpc-url, ETH_RPC_URL or foundry.toml that serves a Tempo
chain. An RPC is asked for its active hardfork; otherwise the compiled Tempo hardfork schedule
is read for the chain.
A non-Tempo --chain (or CHAIN) creates an EOA without reading the configuration. Without
requested (--configurable-account), a configuration or RPC URL that cannot be read also
creates an EOA; requested fails on it, and reports why it creates an EOA instead of an
account.