Sitelet https://github.com/graphprotocol/graph-node/pull/4426/files
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 1 addition & 17 deletions chain/cosmos/src/trigger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,23 +69,7 @@ pub enum CosmosTrigger {
Message(Arc<codec::MessageData>),
}

impl CheapClone for CosmosTrigger {
fn cheap_clone(&self) -> CosmosTrigger {
match self {
CosmosTrigger::Block(block) => CosmosTrigger::Block(block.cheap_clone()),
CosmosTrigger::Event { event_data, origin } => CosmosTrigger::Event {
event_data: event_data.cheap_clone(),
origin: *origin,
},
CosmosTrigger::Transaction(transaction_data) => {
CosmosTrigger::Transaction(transaction_data.cheap_clone())
}
CosmosTrigger::Message(message_data) => {
CosmosTrigger::Message(message_data.cheap_clone())
}
}
}
}
impl CheapClone for CosmosTrigger {}

impl PartialEq for CosmosTrigger {
Comment thread
neysofu marked this conversation as resolved.
fn eq(&self, other: &Self) -> bool {
Expand Down