fix: eip712 path
This commit is contained in:
parent
2e77b6bcdc
commit
ede01ea230
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue