Skip to content

Commit

Permalink
bug: recover zero value check in Height to fix integration-test bug
Browse files Browse the repository at this point in the history
  • Loading branch information
liyukun committed Jul 28, 2023
1 parent ff43572 commit ec09d2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 3 additions & 5 deletions crates/relayer-types/src/core/ics02_client/height.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,9 @@ impl Height {

impl Height {
pub fn new(revision_number: u64, revision_height: u64) -> Result<Self, Error> {
// FIXME: Axon solidity contract allows `revision_height` to be 0 to skip some checks
//
// if revision_height == 0 {
// return Err(Error::invalid_height());
// }
if revision_height == 0 {
return Err(Error::invalid_height());
}

Ok(Self {
revision_number,
Expand Down
1 change: 1 addition & 0 deletions crates/relayer/src/chain/axon/contract/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ pub use generate::*;
mod contract_generator {
use ethers::contract::Abigen;

#[ignore = "generated file cannot be used until mannully fixing compile errors"]
#[test]
fn generate_rs() {
Abigen::new(
Expand Down

0 comments on commit ec09d2e

Please sign in to comment.