Chore/cosmrs update (#862)

* Re-enabled `get_tx` endpoint

* Updated cosmrs to 0.3 and prost to 0.9

* [ci skip] Generate TS types

Co-authored-by: jstuczyn <jstuczyn@users.noreply.github.com>
This commit is contained in:
Jędrzej Stuczyński
2021-11-03 11:03:18 +00:00
committed by GitHub
parent e1d7772a78
commit 7e1c3b4501
9 changed files with 232 additions and 256 deletions
+2 -2
View File
@@ -213,7 +213,7 @@ impl<C> Client<C> {
match res {
Ok(_) => Ok(()),
Err(err) => {
if err.is_tendermint_timeout() {
if err.is_tendermint_response_timeout() {
// wait until we're sure we're into the next block (remember we're holding the lock)
sleep(Duration::from_secs(11)).await;
let curr_sequence = client_guard.nymd.account_sequence().await?;
@@ -281,7 +281,7 @@ impl<C> Client<C> {
match res {
Ok(_) => Ok(()),
Err(err) => {
if err.is_tendermint_timeout() {
if err.is_tendermint_response_timeout() {
// wait until we're sure we're into the next block (remember we're holding the lock)
sleep(Duration::from_secs(11)).await;
let curr_sequence = client_guard.nymd.account_sequence().await?;
+1 -1
View File
@@ -50,7 +50,7 @@ impl RewardingError {
pub fn is_tendermint_duplicate(&self) -> bool {
match &self {
RewardingError::ValidatorClientError(ValidatorClientError::NymdError(nymd_err)) => {
nymd_err.is_tendermint_duplicate()
nymd_err.is_tendermint_response_duplicate()
}
_ => false,
}