* Decodes %%data%% into the structured data it represents.
(_data)
| 74 | * Decodes %%data%% into the structured data it represents. |
| 75 | */ |
| 76 | function decodeRlp(_data) { |
| 77 | const data = (0, data_js_2.getBytes)(_data, "data"); |
| 78 | const decoded = _decode(data, 0); |
| 79 | (0, errors_js_1.assertArgument)(decoded.consumed === data.length, "unexpected junk after rlp payload", "data", _data); |
| 80 | return decoded.result; |
| 81 | } |
| 82 | exports.decodeRlp = decodeRlp; |
| 83 | //# sourceMappingURL=rlp-decode.js.map |