Skip to content

Commit b198aed

Browse files
authored
fix(sol-macro): prevent direct String usage in expanded code (#1076)
1 parent 0fc5ab4 commit b198aed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/sol-macro-expander/src/expand/contract.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ pub(super) fn expand(cx: &mut ExpCtxt<'_>, contract: &ItemContract) -> Result<To
214214
/// Contains [dynamic ABI definitions](alloy_sol_types::private::alloy_json_abi) for [this contract](self).
215215
pub mod abi {
216216
use super::*;
217-
use alloy_sol_types::private::{alloy_json_abi as json, BTreeMap, Vec};
217+
use alloy_sol_types::private::{alloy_json_abi as json, BTreeMap, String, Vec};
218218

219219
/// Returns the ABI for [this contract](super).
220220
pub fn contract() -> json::JsonAbi {

0 commit comments

Comments
 (0)