Skip to content

Commit

Permalink
Fix grpc entity id field name (#1282)
Browse files Browse the repository at this point in the history
  • Loading branch information
broody authored Dec 14, 2023
1 parent f7e2737 commit c9671e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/torii/grpc/src/types/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::proto::{self};

#[derive(Debug, Serialize, Deserialize, PartialEq, Hash, Eq, Clone)]
pub struct Entity {
pub key: FieldElement,
pub id: FieldElement,
pub models: Vec<Model>,
}

Expand All @@ -22,7 +22,7 @@ impl TryFrom<proto::types::Entity> for Entity {
type Error = ClientError;
fn try_from(entity: proto::types::Entity) -> Result<Self, Self::Error> {
Ok(Self {
key: FieldElement::from_byte_slice_be(&entity.id).map_err(ClientError::SliceError)?,
id: FieldElement::from_byte_slice_be(&entity.id).map_err(ClientError::SliceError)?,
models: entity
.models
.into_iter()
Expand Down

0 comments on commit c9671e6

Please sign in to comment.