Skip to content

Commit

Permalink
Use a fixed Solidity parser version to parse built-ins file
Browse files Browse the repository at this point in the history
  • Loading branch information
ggiraldez committed Dec 14, 2024
1 parent 27ec712 commit 6104e29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/solidity/outputs/cargo/crate/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 6104e29

Please sign in to comment.