on master help sign in
Merge branch 'galaxy-planet-check' of https://github.com/jkmallard/bridge into jkmallard-galaxy-planet-check
345aeb5Jared Tobin
src/views/IssueChild.js+6
@@ -260,6 +260,12 @@ class IssueChild extends React.Component {
260
260
261 const pointDec = ob.patp2dec(state.desiredPoint)
261 const pointDec = ob.patp2dec(state.desiredPoint)
262
262
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+
263 const owner = await azimuth.azimuth.getOwner(
269 const owner = await azimuth.azimuth.getOwner(
264 validContracts,
270 validContracts,
265 pointDec
271 pointDec