nautls / ergo-graphql

Ergo Platform GraphQL server
MIT License
16 stars 1 forks source link

`additionalRegisters` input bug #79

Open SepehrGanji opened 10 months ago

SepehrGanji commented 10 months ago

While filtering more than one register (Eg. R5 and R6) the box query does not return proper boxes. Sample query:

{
  boxes(
    spent: true, 
    ergoTree: "100504000400050004000e20011d3364de07e5a26f0c4eef0852cddb387039a921b7154ef3cab22c6eda887fd803d601b2a5730000d602e4c6a70407d603b2db6501fe730100ea02d1ededededed93e4c672010407720293e4c67201050ec5720391e4c672010605730293c27201c2a793db63087201db6308a7938cb2db63087203730300017304cd7202",
    registers: {
      R5: "0e209060ac3dfc62aa0a14c87b9f45e57f13ea37815db956efb3a0ca5cd49dd37d9f",
      R6: "0590c7949406"
    }
  ){
    additionalRegisters
    ergoTree
  }
}
SepehrGanji commented 10 months ago

image This is where bug happens, id and value cannot be some value at the same time.