Bridging Solidity Evolution Gaps: An LLM-Enhanced Approach for Smart Contract Compilation Error Resolution
Likai Ye, Mengliang Li, Dehai Zhao, Jiamou Sun, Xiaoxue Ren

TL;DR
This paper investigates the challenges of Solidity smart contract compilation errors across versions and introduces SMCFIXER, an LLM-enhanced framework that significantly improves error resolution accuracy during version migration.
Contribution
The paper presents SMCFIXER, a novel framework combining expert knowledge retrieval with LLMs to systematically resolve Solidity compilation errors during version upgrades.
Findings
81.68% of contracts encounter cross-version errors
LLMs show error repair capabilities but struggle with semantic issues
SMCFIXER achieves 24.24% improvement over baseline models
Abstract
Solidity, the dominant smart contract language for Ethereum, has rapidly evolved with frequent version updates to enhance security, functionality, and developer experience. However, these continual changes introduce significant challenges, particularly in compilation errors, code migration, and maintenance. Therefore, we conduct an empirical study to investigate the challenges in the Solidity version evolution and reveal that 81.68% of examined contracts encounter errors when compiled across different versions, with 86.92% of compilation errors. To mitigate these challenges, we conducted a systematic evaluation of large language models (LLMs) for resolving Solidity compilation errors during version migrations. Our empirical analysis across both open-source (LLaMA3, DeepSeek) and closed-source (GPT-4o, GPT-3.5-turbo) LLMs reveals that although these models exhibit error repair…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
