mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 05:17:58 +00:00
contracts: New contract events + unconfusions (#4685)
* contracts: during execution -> contract trapped during execution This message confused many people so we are improving it to make clear what happened. * contracts: rename Event::Contract -> Event::ContractExecution * contracts: fix tests after ContractExecution renaming * contracts: Add Evicted and Restored events * fix doc comment * wrap to not go over (soft) 100 column line limit * add event deposit for eventual eviction upon pay_rent * contracts: adjust tests for the new events * emit Evicted event immediately and add tombstone flag bool
This commit is contained in:
committed by
Sergei Pepyakin
parent
169a48c0c5
commit
caa6efa5ec
@@ -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),
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user