From 15aa85e700281ff090358d0a41c25383b9100fdd Mon Sep 17 00:00:00 2001 From: yito88 Date: Mon, 17 Jun 2024 15:24:38 +0200 Subject: [PATCH] try another conversion --- crates/core/src/time.rs | 4 ++-- crates/tests/src/e2e/ibc_tests.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/core/src/time.rs b/crates/core/src/time.rs index 328ae792d7..d66f60131d 100644 --- a/crates/core/src/time.rs +++ b/crates/core/src/time.rs @@ -357,10 +357,10 @@ impl TryFrom for crate::tendermint::time::Time { } impl TryFrom for DateTimeUtc { - type Error = prost_types::TimestampError; + type Error = ParseError; fn try_from(t: crate::tendermint::time::Time) -> Result { - crate::tendermint_proto::google::protobuf::Timestamp::from(t).try_into() + Self::from_rfc3339(&t.to_rfc3339()) } } diff --git a/crates/tests/src/e2e/ibc_tests.rs b/crates/tests/src/e2e/ibc_tests.rs index eb205db370..c1781b6295 100644 --- a/crates/tests/src/e2e/ibc_tests.rs +++ b/crates/tests/src/e2e/ibc_tests.rs @@ -854,7 +854,7 @@ fn run_two_nets( wait_for_wasm_pre_compile(&mut ledger_a)?; wait_for_wasm_pre_compile(&mut ledger_b)?; - sleep(30); + sleep(5); Ok((ledger_a, ledger_b, test_a, test_b)) }