Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinquaXD committed Apr 20, 2024
1 parent cb97d5b commit f0ad2d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ethcontract-generate/src/generate/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ mod tests {
..Default::default()
};
let mut contract = Contract::with_name("Contract");
contract.abi = Arc::new(abi.into());
contract.interface = Arc::new(abi.into());

let mut context = Context::from_builder(&contract, ContractBuilder::new()).unwrap();

Expand Down Expand Up @@ -796,7 +796,7 @@ mod tests {
..Default::default()
};
let mut contract = Contract::with_name("Contract");
contract.abi = Arc::new(abi.into());
contract.interface = Arc::new(abi.into());
let context = Context::from_builder(&contract, ContractBuilder::new()).unwrap();

let foo_signature = expand_hash(context.contract.interface.abi.event("Foo").unwrap().signature());
Expand Down

0 comments on commit f0ad2d2

Please sign in to comment.