fixed 'OfflineSigner' implementation for 'NyxdClient' and 'MaybeSigningClient'
This commit is contained in:
@@ -13,6 +13,7 @@ use tendermint_rpc::{Error as TendermintRpcError, SimpleRequest};
|
||||
|
||||
#[cfg(feature = "http-client")]
|
||||
use cosmrs::rpc::{HttpClient, HttpClientUrl};
|
||||
use cosmrs::tx::{Raw, SignDoc};
|
||||
|
||||
pub mod client_traits;
|
||||
mod helpers;
|
||||
@@ -99,6 +100,14 @@ where
|
||||
fn get_accounts(&self) -> Result<Vec<AccountData>, Self::Error> {
|
||||
self.signer.get_accounts()
|
||||
}
|
||||
|
||||
fn sign_direct_with_account(
|
||||
&self,
|
||||
signer: &AccountData,
|
||||
sign_doc: SignDoc,
|
||||
) -> Result<Raw, Self::Error> {
|
||||
self.signer.sign_direct_with_account(signer, sign_doc)
|
||||
}
|
||||
}
|
||||
|
||||
#[async_trait]
|
||||
|
||||
@@ -15,7 +15,7 @@ use crate::signing::tx_signer::TxSigner;
|
||||
use crate::signing::AccountData;
|
||||
use async_trait::async_trait;
|
||||
use cosmrs::cosmwasm;
|
||||
use cosmrs::tx::Msg;
|
||||
use cosmrs::tx::{Msg, Raw, SignDoc};
|
||||
use cosmwasm_std::Addr;
|
||||
use nym_network_defaults::{ChainDetails, NymNetworkDetails};
|
||||
use serde::Serialize;
|
||||
@@ -603,6 +603,14 @@ where
|
||||
fn get_accounts(&self) -> Result<Vec<AccountData>, Self::Error> {
|
||||
self.client.get_accounts()
|
||||
}
|
||||
|
||||
fn sign_direct_with_account(
|
||||
&self,
|
||||
signer: &AccountData,
|
||||
sign_doc: SignDoc,
|
||||
) -> Result<Raw, Self::Error> {
|
||||
self.client.sign_direct_with_account(signer, sign_doc)
|
||||
}
|
||||
}
|
||||
|
||||
#[async_trait]
|
||||
|
||||
Reference in New Issue
Block a user