Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
noot committed Aug 20, 2024
1 parent d26646e commit ee1c6b2
Showing 1 changed file with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,6 @@ use crate::{
Ics20Withdrawal,
};

// #[async_trait]
// impl ActionHandler for Ics20Withdrawal {
// type CheckStatelessContext = ();
// async fn check_stateless(&self, _context: ()) -> Result<()> {
// self.validate()
// }

// async fn check_historical<S: StateRead + 'static>(&self, state: Arc<S>) -> Result<()> {
// ensure!(
// state
// .get_ibc_params()
// .await?
// .outbound_ics20_transfers_enabled,
// "transaction an ICS20 withdrawal, but outbound ICS20 withdrawals are not enabled"
// );
// Ok(())
// }

// async fn check_and_execute<S: StateWrite>(&self, mut state: S) -> Result<()> {
// state.withdrawal_check(self).await?;
// state.withdrawal_execute(self).await
// }
// }

impl<HI: HostInterface> Ics20WithdrawalWithHandler<HI> {
pub async fn check_stateless(&self, _context: ()) -> Result<()> {
self.action().validate()
Expand Down

0 comments on commit ee1c6b2

Please sign in to comment.