Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
ash-burnt committed Nov 5, 2024
1 parent 822b69d commit 424c413
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions contracts/account/src/contract.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use cosmwasm_schema::cw_serde;
use cosmwasm_std::{to_json_binary, Binary, Deps, DepsMut, Env, MessageInfo, Response, StdResult};
use cosmwasm_std::{
to_json_binary, AnyMsg, Binary, Deps, DepsMut, Env, MessageInfo, Response, StdResult,
};

use crate::error::ContractError;
use crate::execute::{add_auth_method, assert_self, remove_auth_method};
Expand All @@ -22,20 +24,14 @@ pub fn instantiate(
execute::init(deps, env, &mut msg.authenticator.clone())
}

#[cw_serde]
pub struct Any {
pub type_url: String,
pub value: Binary,
}

/// Any contract must implement this sudo message (both variants) in order to
/// qualify as an abstract account.
#[cw_serde]
pub enum AccountSudoMsg {
/// Called by the AnteHandler's BeforeTxDecorator before a tx is executed.
BeforeTx {
/// Messages the tx contains
msgs: Vec<Any>,
msgs: Vec<AnyMsg>,

/// The tx serialized into binary format.
///
Expand Down

0 comments on commit 424c413

Please sign in to comment.