From f0ad2d22066932562aab49d2b441c2d165eb4f8c Mon Sep 17 00:00:00 2001 From: MartinquaXD Date: Sat, 20 Apr 2024 09:55:17 +0200 Subject: [PATCH] Fix unit test --- ethcontract-generate/src/generate/events.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ethcontract-generate/src/generate/events.rs b/ethcontract-generate/src/generate/events.rs index 2d2617c3..6f0affd1 100644 --- a/ethcontract-generate/src/generate/events.rs +++ b/ethcontract-generate/src/generate/events.rs @@ -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(); @@ -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());