on master help sign in
Merge branch 'galaxy-planet-check' of https://github.com/jkmallard/bridge into jkmallard-galaxy-planet-check
commit345aeb504077619d586ec028f5346c718412ac15 authorJared Tobin <jared@jtobin.io> dateWed 27 Feb 2019, 16:09 (8 years ago) parent7221645e72ca11
1 file changed+6
src/views/IssueChild.js+6
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