CreateResultData.deserialize constructor

CreateResultData.deserialize(
  1. List<int> bytes
)

Implementation

factory CreateResultData.deserialize(List<int> bytes) {
  final decode = CosmosProtoMessage.decode(bytes, protoConfigStatic());
  return CreateResultData(
    wasmHash: decode.getBytes<List<int>?>(1),
    codeHash: decode.getBytes<List<int>?>(2),
    hasError: decode.getBool<bool?>(3),
    errorMsg: decode.getString<String?>(4),
  );
}