Skip to content

Commit

Permalink
fix abi generation
Browse files Browse the repository at this point in the history
  • Loading branch information
breathx committed Dec 4, 2024
1 parent 806c0c3 commit 01ca38e
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions ethexe/ethereum/src/abi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,17 @@ use alloy::sol;
mod events;
mod gear;

sol!(
#[sol(rpc)]
IMirror,
"Mirror.json"
);
pub use mirror_abi::*;

// TODO (breathx): remove this dummy hack to avoid reentrancy issues with
// the `sol!` macro, dealing with internal libraries (e.g. 'Gear').
mod mirror_abi {
alloy::sol!(
#[sol(rpc)]
IMirror,
"Mirror.json"
);
}

sol!(
#[sol(rpc)]
Expand Down

0 comments on commit 01ca38e

Please sign in to comment.