Skip to content

Commit

Permalink
feat(contract-verifier): Allow sc code reverification (matter-labs#1455)
Browse files Browse the repository at this point in the history
## What ❔

 Allow sc code reverification

## Why ❔

<!-- Why are these changes done? What goal do they contribute to? What
are the principles behind them? -->
<!-- Example: PR templates ensure PR reviewers, observers, and future
iterators are in context about the evolution of repos. -->

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [ ] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [ ] Code has been formatted via `zk fmt` and `zk lint`.
- [ ] Spellcheck has been run via `zk spellcheck`.
- [ ] Linkcheck has been run via `zk linkcheck`.
  • Loading branch information
perekopskiy authored Mar 18, 2024
1 parent 66ceb0b commit 5a37b42
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,6 @@ impl RestApi {
HttpResponse::BadRequest().body("There is no deployed contract on this address")
);
}
if storage
.contract_verification_dal()
.is_contract_verified(request.contract_address)
.await
.unwrap()
{
return Ok(HttpResponse::BadRequest().body("This contract is already verified"));
}

let request_id = storage
.contract_verification_dal()
Expand Down

0 comments on commit 5a37b42

Please sign in to comment.