Skip to content

Commit

Permalink
Fix wrong suffix .abis -> .abi (#184)
Browse files Browse the repository at this point in the history
The file suffix generated by solc is '.abi' instead of '.abis'
  • Loading branch information
0xAWM authored Sep 3, 2023
1 parent 7703d11 commit ca9772f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/evm/contract_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,9 @@ impl ContractLoader {
// This function loads constructs Contract infos from path p
// The organization of directory p should be
// p
// |- contract1.abis
// |- contract1.abi
// |- contract1.bin
// |- contract2.abis
// |- contract2.abi
// |- contract2.bin
pub fn from_glob(
p: &str,
Expand All @@ -329,9 +329,9 @@ impl ContractLoader {
match i {
Ok(path) => {
let path_str = path.to_str().unwrap();
if path_str.ends_with(".abis") {
if path_str.ends_with(".abi") {
*prefix_file_count
.entry(path_str.replace(".abis", "").clone())
.entry(path_str.replace(".abi", "").clone())
.or_insert(0) += 1;
} else if path_str.ends_with(".bin") {
*prefix_file_count
Expand Down

0 comments on commit ca9772f

Please sign in to comment.