Skip to content

Commit

Permalink
fix: add alias
Browse files Browse the repository at this point in the history
  • Loading branch information
nakul1010 committed Dec 12, 2023
1 parent 31556f2 commit c3edd9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/redeem/rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ where
#[method(name = "redeem_getVaultRedeemRequests")]
fn get_vault_redeem_requests(&self, vault_id: AccountId, at: Option<BlockHash>) -> RpcResult<Vec<H256>>;

#[method(name = "redeem_getPremiumRedeemVaults")]
#[method(name = "redeem_getPremiumRedeemVaults", aliases = ["redeem_getPremiumRedeemVaults"])]
fn get_premium_redeem_vaults(&self, at: Option<BlockHash>) -> RpcResult<Vec<(VaultId, BalanceWrapper<Balance>)>>;
}

Expand Down
5 changes: 1 addition & 4 deletions crates/vault-registry/rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,7 @@ where
at: Option<BlockHash>,
) -> RpcResult<BalanceWrapper<Balance>>;

#[method(
name = "vaultRegistry_getRequiredCollateralForVault",
aliases = ["redeem_getPremiumRedeemVaults"]
)]
#[method(name = "vaultRegistry_getRequiredCollateralForVault")]
fn get_required_collateral_for_vault(
&self,
vault_id: VaultId,
Expand Down

0 comments on commit c3edd9a

Please sign in to comment.