diff --git a/scripts/execution_layer.py b/scripts/execution_layer.py index ecc6d765d46c08..0fccc8484bbe0e 100755 --- a/scripts/execution_layer.py +++ b/scripts/execution_layer.py @@ -495,7 +495,7 @@ def substitute(m): for (version, feature, cut) in cuts ) elif var == "VERIFIER_CUTS": - call = "Verifier::new(protocol_config, is_metered, metrics)" + call = "Verifier::new(config, metrics)" return "\n".join( f"{spc}{feature or version} => Box::new({cut}::{call})," for (version, feature, cut) in cuts diff --git a/sui-execution/src/lib.template.rs b/sui-execution/src/lib.template.rs index 64974b5d8d8322..4037ca5aae696c 100644 --- a/sui-execution/src/lib.template.rs +++ b/sui-execution/src/lib.template.rs @@ -35,10 +35,11 @@ pub fn executor( pub fn verifier<'m>( protocol_config: &ProtocolConfig, - is_metered: bool, + for_signing: bool, metrics: &'m Arc, ) -> Box { let version = protocol_config.execution_version_as_option().unwrap_or(0); + let config = protocol_config.verifier_config(for_signing); match version { // $VERIFIER_CUTS v => panic!("Unsupported execution version {v}"),