|
4 | 4 |
|
5 | 5 | from ethereum.utils import normalize_address, hash32, trie_root, \
|
6 | 6 | big_endian_int, address, int256, encode_int, \
|
7 |
| - safe_ord, int_to_addr, sha3, big_endian_to_int |
| 7 | + safe_ord, int_to_addr, sha3, big_endian_to_int, \ |
| 8 | + ascii_chr |
8 | 9 | from rlp.sedes import big_endian_int, Binary, binary, CountableList
|
9 | 10 | from rlp.utils import decode_hex, encode_hex, ascii_chr
|
10 | 11 | from ethereum import utils
|
@@ -216,7 +217,7 @@ def apply_message(state, msg=None, **kwargs):
|
216 | 217 | assert not kwargs
|
217 | 218 | ext = VMExt(state, transactions.Transaction(0, 0, 21000, b'', 0, b''))
|
218 | 219 | result, gas_remained, data = apply_msg(ext, msg)
|
219 |
| - return b''.join(map(lambda d: bytes([d]), data)) if result else None |
| 220 | + return b''.join(map(ascii_chr, data)) if result else None |
220 | 221 |
|
221 | 222 |
|
222 | 223 | def apply_transaction(state, tx):
|
|
0 commit comments