Skip to content

Commit

Permalink
Merge branch 'mergify/bp/0.44.0/pr-3857' (#3861)
Browse files Browse the repository at this point in the history
* origin/mergify/bp/0.44.0/pr-3857:
  Changelog #3857
  Removes unused `Success` event
  Adds test for identical events in batch
  Adds batch events tests
  Removes eprintln from prepare proposal unit tests
  Adds tests for whitelisted tokens gas payment
  • Loading branch information
tzemanovic committed Oct 2, 2024
2 parents 92c757b + 9cf0f07 commit 2bd9a60
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 2bd9a60

Please sign in to comment.