QueryTraceBlockRequest.deserialize constructor
QueryTraceBlockRequest.deserialize(
- List<int> bytes
)
Implementation
factory QueryTraceBlockRequest.deserialize(List<int> bytes) {
final decode = CosmosProtoMessage.decode(bytes, protoConfigStatic());
return QueryTraceBlockRequest(
txs:
decode
.getListOfBytes(1)
.map((b) => stratos_evm_v1_tx.MsgEthereumTx.deserialize(b))
.toList(),
traceConfig: decode.messageTo<stratos_evm_v1_evm.TraceConfig?>(
3,
(b) => stratos_evm_v1_evm.TraceConfig.deserialize(b),
),
blockNumber: decode.getBigInt<BigInt?>(5),
blockHash: decode.getString<String?>(6),
blockTime: decode.messageTo<google_protobuf_timestamp.Timestamp?>(
7,
(b) => google_protobuf_timestamp.Timestamp.deserialize(b),
),
);
}