@@ -256,10 +256,10 @@ def _apply_msg(ext, msg, code):
256
256
gas = msg .gas , value = msg .value ,
257
257
data = encode_hex (msg .data .extract_all ()))
258
258
if log_state .is_active ('trace' ):
259
- log_state .trace ('MSG PRE STATE SENDER' , account = msg .sender . encode ( 'hex' ),
259
+ log_state .trace ('MSG PRE STATE SENDER' , account = encode_hex ( msg .sender ),
260
260
bal = ext .get_balance (msg .sender ),
261
261
state = ext .log_storage (msg .sender ))
262
- log_state .trace ('MSG PRE STATE RECIPIENT' , account = msg .to . encode ( 'hex' ),
262
+ log_state .trace ('MSG PRE STATE RECIPIENT' , account = encode_hex ( msg .to ),
263
263
bal = ext .get_balance (msg .to ),
264
264
state = ext .log_storage (msg .to ))
265
265
# log_state.trace('CODE', code=code)
@@ -281,10 +281,10 @@ def _apply_msg(ext, msg, code):
281
281
log_msg .debug ('MSG APPLIED' , gas_remained = gas ,
282
282
sender = encode_hex (msg .sender ), to = encode_hex (msg .to ), data = dat )
283
283
if log_state .is_active ('trace' ):
284
- log_state .trace ('MSG POST STATE SENDER' , account = msg .sender . encode ( 'hex' ),
284
+ log_state .trace ('MSG POST STATE SENDER' , account = encode_hex ( msg .sender ),
285
285
bal = ext .get_balance (msg .sender ),
286
286
state = ext .log_storage (msg .sender ))
287
- log_state .trace ('MSG POST STATE RECIPIENT' , account = msg .to . encode ( 'hex' ),
287
+ log_state .trace ('MSG POST STATE RECIPIENT' , account = encode_hex ( msg .to ),
288
288
bal = ext .get_balance (msg .to ),
289
289
state = ext .log_storage (msg .to ))
290
290
0 commit comments