Skip to content

Commit

Permalink
Merge pull request #3857 from anoma/grarco/batch-events-tests
Browse files Browse the repository at this point in the history
Batch events tests
  • Loading branch information
mergify[bot] authored Oct 1, 2024
2 parents 5a5e212 + 9625834 commit 48cece5
Show file tree
Hide file tree
Showing 15 changed files with 657 additions and 378 deletions.
2 changes: 2 additions & 0 deletions .changelog/unreleased/testing/3857-batch-events-tests.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Added testing for batched tx events.
([\#3857](https://github.com/anoma/namada/pull/3857))
14 changes: 0 additions & 14 deletions crates/events/src/extend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -542,20 +542,6 @@ impl EventAttributeEntry<'static> for MaspDataRefs {
}
}

/// Extend an [`Event`] with success data.
pub struct Success(pub bool);

impl EventAttributeEntry<'static> for Success {
type Value = bool;
type ValueOwned = Self::Value;

const KEY: &'static str = "success";

fn into_value(self) -> Self::Value {
self.0
}
}

/// Extend an [`Event`] with a new domain.
pub struct Domain<E>(PhantomData<E>);

Expand Down
Loading

0 comments on commit 48cece5

Please sign in to comment.