QueryTraceTxRequest.deserialize constructor
QueryTraceTxRequest.deserialize(
- List<int> bytes
)
Implementation
factory QueryTraceTxRequest.deserialize(List<int> bytes) {
final decode = CosmosProtoMessage.decode(bytes, protoConfigStatic());
return QueryTraceTxRequest(
msg: decode.messageTo<ethermint_evm_v1_tx.MsgEthereumTx?>(
1,
(b) => ethermint_evm_v1_tx.MsgEthereumTx.deserialize(b),
),
traceConfig: decode.messageTo<ethermint_evm_v1_evm.TraceConfig?>(
3,
(b) => ethermint_evm_v1_evm.TraceConfig.deserialize(b),
),
predecessors:
decode
.getListOfBytes(4)
.map((b) => ethermint_evm_v1_tx.MsgEthereumTx.deserialize(b))
.toList(),
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),
),
proposerAddress: decode.getBytes<List<int>?>(8),
chainId: decode.getBigInt<BigInt?>(9),
blockMaxGas: decode.getBigInt<BigInt?>(10),
);
}