Skip to content

Commit 92fbeb6

Browse files
authored
Merge pull request #18 from CosmWasm/deprecate-Event
Deprecate cw_utils::Event
2 parents 631e267 + bac2017 commit 92fbeb6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/event.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
use cosmwasm_std::Response;
22

33
/// This defines a set of attributes which should be added to `Response`.
4+
#[deprecated(
5+
note = "This is probably not needed anymore. If you use it, please share in https://github.com/CosmWasm/cw-utils/issues/17."
6+
)]
47
pub trait Event {
58
/// Append attributes to response
69
fn add_attributes(&self, response: &mut Response);

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ pub use payment::{may_pay, must_pay, nonpayable, one_coin, PaymentError};
2929
pub use threshold::{Threshold, ThresholdError, ThresholdResponse};
3030

3131
pub use crate::balance::NativeBalance;
32+
#[allow(deprecated)]
3233
pub use crate::event::Event;
3334
pub use crate::expiration::{Duration, Expiration, DAY, HOUR, WEEK};
3435
pub use crate::scheduled::Scheduled;

0 commit comments

Comments
 (0)