We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d9cdd8 commit 1f4e9f0Copy full SHA for 1f4e9f0
lib/evm/evm.ts
@@ -104,6 +104,8 @@ export default class EVM {
104
* if an exception happens during the message execution.
105
*/
106
async executeMessage(message: Message): Promise<EVMResult> {
107
+ await this._vm._emit('beforeMessage', message)
108
+
109
await this._state.checkpoint()
110
111
let result
@@ -130,6 +132,8 @@ export default class EVM {
130
132
await this._state.commit()
131
133
}
134
135
+ await this._vm._emit('afterMessage', result)
136
137
return result
138
139
0 commit comments