File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -161,13 +161,13 @@ impl WasmInstance {
161
161
mut self ,
162
162
handler_name : & str ,
163
163
) -> Result < BlockState , anyhow:: Error > {
164
- let block : & Arc < EthereumBlockType > = & self . take_ctx ( ) . ctx . block ;
164
+ let context = self . take_ctx ( ) ;
165
165
166
166
// Prepare an Ethereum Block for the WASM runtime
167
- let arg = match block. as_ref ( ) {
167
+ let arg = match context . ctx . block . as_ref ( ) {
168
168
EthereumBlockType :: FullWithReceipts ( block) => self
169
169
. asc_new :: < AscFullEthereumBlockWithReceipts , _ > (
170
- & FullEthereumBlockDataWithReceipts :: from ( block) ,
170
+ & FullEthereumBlockDataWithReceipts :: try_from ( block) . unwrap ( ) ,
171
171
)
172
172
. erase ( ) ,
173
173
EthereumBlockType :: Full ( block) => self
@@ -180,7 +180,7 @@ impl WasmInstance {
180
180
181
181
self . invoke_handler ( handler_name, arg) ?;
182
182
183
- Ok ( self . take_ctx ( ) . ctx . state )
183
+ Ok ( context . ctx . state )
184
184
}
185
185
186
186
pub ( crate ) fn take_ctx ( & mut self ) -> WasmInstanceContext {
You can’t perform that action at this time.
0 commit comments