fn id<S: Serializer>(chain: &Option<Chain>, s: S) -> Result<S::Ok, S::Error>
We have to serialize chain IDs and not names because when extracting an EVM Env, it expects chain_id to be u64.
Env
chain_id
u64