From 6104e29d4bca44e3c2857cac0644c486f697a589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustavo=20Gir=C3=A1ldez?= Date: Fri, 29 Nov 2024 14:52:23 -0500 Subject: [PATCH] Use a fixed Solidity parser version to parse built-ins file --- crates/solidity/outputs/cargo/crate/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/solidity/outputs/cargo/crate/src/lib.rs b/crates/solidity/outputs/cargo/crate/src/lib.rs index 7463e16525..a2f603edf9 100644 --- a/crates/solidity/outputs/cargo/crate/src/lib.rs +++ b/crates/solidity/outputs/cargo/crate/src/lib.rs @@ -10,11 +10,13 @@ pub mod bindings { use crate::cst::TextIndex; use crate::parser::{Parser, ParserInitializationError}; + static BUILT_INS_PARSER_VERSION: Version = Version::new(0, 8, 28); + pub fn add_built_ins( bindings: &mut Bindings, version: &Version, ) -> Result<(), ParserInitializationError> { - let parser = Parser::create(version.clone())?; + let parser = Parser::create(BUILT_INS_PARSER_VERSION.clone())?; let built_ins_parse_output = parser.parse(Parser::ROOT_KIND, get_built_ins(version)); assert!( built_ins_parse_output.is_valid(),