Skip to content

Commit

Permalink
fixup! Merge branch 'fraccaman/sdk-rpc-queries' (#2400)
Browse files Browse the repository at this point in the history
  • Loading branch information
tzemanovic committed Jan 16, 2024
1 parent 77936d8 commit eefe4c0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions crates/governance/src/storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,9 @@ where
pub fn get_proposal_result<S>(
storage: &S,
proposal_id: u64,
) -> storage_api::Result<Option<ProposalResult>>
) -> StorageResult<Option<ProposalResult>>
where
S: storage_api::StorageRead,
S: StorageRead,
{
let key = governance_keys::get_proposal_result_key(proposal_id);
let proposal_result: Option<ProposalResult> = storage.read(&key)?;
Expand Down
4 changes: 2 additions & 2 deletions crates/sdk/src/queries/vp/governance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ where
fn proposal_result<D, H, V, T>(
ctx: RequestCtx<'_, D, H, V, T>,
id: u64,
) -> storage_api::Result<Option<ProposalResult>>
) -> namada_storage::Result<Option<ProposalResult>>
where
D: 'static + DB + for<'iter> DBIter<'iter> + Sync,
H: 'static + StorageHasher + Sync,
{
storage_api::governance::get_proposal_result(ctx.wl_storage, id)
namada_governance::storage::get_proposal_result(ctx.wl_storage, id)
}
2 changes: 1 addition & 1 deletion crates/sdk/src/queries/vp/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ where
fn total_supply<D, H, V, T>(
ctx: RequestCtx<'_, D, H, V, T>,
addr: Address,
) -> storage_api::Result<token::Amount>
) -> namada_storage::Result<token::Amount>
where
D: 'static + DB + for<'iter> DBIter<'iter> + Sync,
H: 'static + StorageHasher + Sync,
Expand Down
1 change: 1 addition & 0 deletions crates/sdk/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use namada_core::types::token::{
};
use namada_core::types::{storage, token};
use namada_governance::parameters::GovernanceParameters;
use namada_governance::pgf::parameters::PgfParameters;
use namada_governance::pgf::storage::steward::StewardDetail;
use namada_governance::storage::proposal::StorageProposal;
use namada_governance::utils::{
Expand Down

0 comments on commit eefe4c0

Please sign in to comment.