Skip to content

Commit

Permalink
fix(nfts): crash creating new world
Browse files Browse the repository at this point in the history
There's a bad check for whether the world is local leading to crash. I'm temp disabling it.
  • Loading branch information
dmitry-yudakov authored Sep 25, 2023
1 parent d8575d6 commit 22d9a66
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions universe/node/nfts.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ func (n *Node) Listener(bcName string, events []*harvester.UpdateEvent, stakeEve

objectName := "Odyssey#" + strconv.FormatUint(seqID, 10)

isLocal := n.IsLocalWorld(world)
if !isLocal {
worldTemplate.ObjectTypeID = universe.RemoteWorldObjectTypeID
}
// isLocal := n.IsLocalWorld(world)
// if !isLocal {
// worldTemplate.ObjectTypeID = universe.RemoteWorldObjectTypeID
// }

worldTemplate.ObjectID = &event.OdysseyID
worldTemplate.ObjectName = &objectName
Expand Down

0 comments on commit 22d9a66

Please sign in to comment.