use of tech.pegasys.teku.ethereum.executionlayer.client.serialization.Bytes8Deserializer in project teku by ConsenSys.
the class Web3JExecutionEngineClientTest method shouldDeserializeBytes8.
@TestTemplate
void shouldDeserializeBytes8() throws IOException {
Bytes8 originalBytes8 = dataStructureUtil.randomBytes8();
JsonParser parser = prepareDeserializationContext("\"" + originalBytes8.toHexString() + "\"");
Bytes8Deserializer deserializer = new Bytes8Deserializer();
Bytes8 result = deserializer.deserialize(parser, objectMapper.getDeserializationContext());
assertThat(originalBytes8).isEqualTo(result);
}
Aggregations