Skip to content

Commit 897900f

Browse files
committed
Fix contract bindings
1 parent ed96f84 commit 897900f

File tree

2 files changed

+142
-446
lines changed

2 files changed

+142
-446
lines changed

build.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,8 @@ fn compile_depositor_bindings(cargo_manifest_path: String) {
2222
let abi_src_path = format!("{}/{}", cargo_manifest_path, DEPOSITOR_ABI_ARTIFACTS_PATH);
2323

2424
// Check if JSON ABI file of the Depositor contract is exists.
25-
let if_json_abi_exists = Path::new(&abi_src_path).exists();
26-
27-
if !if_json_abi_exists {
28-
panic!(
29-
"\n=> JSON ABI file of the Depositor contract is absent.\n=> Use `npm install && npm run compile` in `<repository_root>/contracts` to compile it.\n"
30-
);
25+
if !Path::new(&abi_src_path).exists() {
26+
return;
3127
}
3228

3329
let depositor_bindings_path =

0 commit comments

Comments
 (0)