Skip to main content

carry_execution_policy

Function carry_execution_policy 

Source
pub fn carry_execution_policy(
    current_default: &Version,
    current: &Version,
    next: Version,
) -> Version
Expand description

Returns next with Foundry’s execution policy carried over from current.

current_default is the network’s default version for the current spec. A policy feature or limit that differs from it was set by Foundry and survives the spec change; everything else, including gas parameters and fork features, comes from next.