Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Prev Previous commit
Next Next commit
contracts: rename Event::Contract -> Event::ContractExecution
  • Loading branch information
Robbepop committed Jan 20, 2020
commit 437c9e0e7b4561cb4921a3a6275acd42fe1102da
2 changes: 1 addition & 1 deletion frame/contracts/src/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ where
fn deposit_event(&mut self, topics: Vec<T::Hash>, data: Vec<u8>) {
self.ctx.deferred.push(DeferredAction::DepositEvent {
topics,
event: RawEvent::Contract(self.ctx.self_account.clone(), data),
event: RawEvent::ContractExecution(self.ctx.self_account.clone(), data),
});
}

Expand Down
4 changes: 2 additions & 2 deletions frame/contracts/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -906,8 +906,8 @@ decl_event! {
/// successful execution or not.
Dispatched(AccountId, bool),

/// An event from contract of account.
Contract(AccountId, Vec<u8>),
/// An event deposited upon execution of a contract from the account.
ContractExecution(AccountId, Vec<u8>),
}
}

Expand Down