fix: eip712 path

This commit is contained in:
DaniPopes 2023-03-21 23:27:44 +01:00
parent 2e77b6bcdc
commit ede01ea230
No known key found for this signature in database
GPG Key ID: 0F09640DDB7AC692
1 changed files with 3 additions and 2 deletions

View File

@ -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")