From ede01ea230b8de8612cbc1838383af921f3fa8f9 Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Tue, 21 Mar 2023 23:27:44 +0100 Subject: [PATCH] fix: eip712 path --- ethers/tests/eip712.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ethers/tests/eip712.rs b/ethers/tests/eip712.rs index 869bb635..218b0105 100644 --- a/ethers/tests/eip712.rs +++ b/ethers/tests/eip712.rs @@ -39,9 +39,10 @@ async fn test_derive_eip712() { } // get ABI and bytecode for the DeriveEip712Test contract - let path = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("tests"); + const PATH: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/tests/DeriveEip712Test.sol"); Solc::find_or_install_svm_version("0.6.0").unwrap(); // install solc - let result = Solc::default().compile_source(path).unwrap(); + let result = Solc::default().compile_source(PATH).unwrap(); + eprintln!("{result:#?}"); let (abi, bytecode, _) = result .find("DeriveEip712Test") .expect("failed to get DeriveEip712Test contract")