Prevent galaxies from spawning planets, for now
commite72ca11ff6fc2943410e0259d1ebc627f5f2d4a7
authorJK Mallard <jkmallard@protonmail.com>
dateSat 19 Jan 2019, 22:36 (8 years ago)
parent4d7dc34
src/views/IssueChild.js+6
@@ -260,6 +260,12 @@ class IssueChild extends React.Component {
260260
261261 const pointDec = ob.patp2dec(state.desiredPoint)
262262
263+ // This check prevents galaxies from creating planets, bc right now it results in a failed tx
264+ // The intention is for the Azimuth contract to allow this in the future someday soon
265+ // This size check will need to be removed at that time
266+ const prefixSize = azimuth.azimuth.getPointSize(azimuth.azimuth.getPrefix(pointDec))
267+ if (prefixSize + 1 !== azimuth.azimuth.getPointSize(pointDec)) return Maybe.Just(false)
268+
263269 const owner = await azimuth.azimuth.getOwner(
264270 validContracts,
265271 pointDec