Skip to main content

resolve_configurable_account

Function resolve_configurable_account 

Source
pub(crate) async fn resolve_configurable_account<N: Network>(
    tempo: &TempoOpts,
    config: &Config,
    wallet: &WalletOpts,
    signer: &mut Option<WalletSigner>,
) -> Result<Option<ConfigurableAccountSigner>>
where N::TransactionRequest: FoundryTransactionBuilder<N>,
Expand description

Detects a Tempo configurable account sender and selects its local owners, taking signer when it is one of them.

The sender is --tempo.configurable-account, --from, the account linked to the signer’s keystore when T14 is active, or the signer’s address. Detection only runs on Tempo, and not in --curl mode, whose transport answers with placeholders.