Use Arc<ChainSpec> in SystemCaller (#12268)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Steven
2024-11-02 01:41:11 -06:00
committed by GitHub
parent d7ead13bda
commit 962fa6685b
6 changed files with 8 additions and 8 deletions

View File

@ -31,7 +31,7 @@ impl<ChainSpec> ExecutionPayloadValidator<ChainSpec> {
/// Returns the chain spec used by the validator.
#[inline]
pub fn chain_spec(&self) -> &ChainSpec {
pub const fn chain_spec(&self) -> &Arc<ChainSpec> {
&self.chain_spec
}
}