`/names/auctions/{name}/info`: Inconsistent response
Closed this issue · 1 comments
davidyuk commented
https://testnet.aeternal.io/middleware/names/auctions/ae.chain/info
{
"bids":[
{
"block_height":161647,
"block_hash":"mh_74CVBiXAkY28hr81v11F292hbdZH2tMzP5MShs3X6cJkq8yvf",
"hash":"th_2miNQgqushpyMDD8risKtqFTsRTnpRBPuvCMy1WRyCQKMqUiQA",
"signatures":"sg_NpxRHHMyQtyxcCPrBibnxvhFzU914mLnd2wnhXqLWJnVhBX15WE5pmx65Kt6VjUoTGUS22BcKwhbQij9brWvaA3i3nP58",
"tx_type":"NameClaimTx",
"tx":{
"account_id":"ak_essw23rv1LdefJReNpoR5wiwtio44rqMdZEMf75F3Vsozg71M",
"fee":16340000000000,
"name":"ae.chain",
"name_fee":1000000000000000000000,
"name_salt":0,
"nonce":27,
"type":"NameClaimTx",
"version":2
},
"fee":"16340000000000",
"size":182
},
{
"block_height":161647,
"block_hash":"mh_re8LDsjPMj43bJoQezj8KWNUKCBs2uhyJu6JJ87uiM9Yd5Qyc",
"hash":"th_HRBLH6NnYK1PyqUoPhizxBTCzynUBtyGhrhoyoE8jFcbLTp3Z",
"signatures":"sg_P9euiwq9RLBJS1jbE5GMkFfiDVqbKeA3NGY6vpFCBJgZJ1CioSsSdrsca6HSwbLbQnsxzyHh6bj5GkfWpvfDvou3gAMMj",
"tx_type":"NameClaimTx",
"tx":{
"account_id":"ak_DzELMKnSfJcfnCUZ2SbXUSxRmFYtGrWmMuKiCx68YKLH26kwc",
"fee":16360000000000,
"name":"ae.chain",
"name_fee":400000000000000000000,
"name_salt":0,
"nonce":166,
"type":"NameClaimTx",
"version":2
},
"fee":"16360000000000",
"size":183
},
{
"block_height":161632,
"block_hash":"mh_2FVpDiRdTh9sgUmX2v8ThFLX9dnFxnxrnUR53RSUZQHvdCpc4a",
"hash":"th_wRByTnoYMbJsi5ov3F9BdrqPRhkhhzhmDpXAizRwazMirMVuE",
"signatures":"sg_JnA91cbxQa1FZuHbPNHfE1C6prfNzijuoisABXRmTjgg4xjtZ3679Tq2ewJfhPVtQyAzBuADms2rQBn7E3NGJT8TbUDGC",
"tx_type":"NameClaimTx",
"tx":{
"account_id":"ak_2swhLkgBPeeADxVTAVCJnZLY5NZtCFiM93JxsEaMuC59euuFRQ",
"fee":16380000000000,
"name":"ae.chain",
"name_fee":380000000000000000000,
"name_salt":0,
"nonce":1143,
"type":"NameClaimTx",
"version":2
},
"fee":"16380000000000",
"size":187
},
{
"block_height":161446,
"block_hash":"mh_2tbfKCsZpEm1ncUK8Yvci3YgUNBgdksPgGbDmjMfsbte6xULwG",
"hash":"th_2EJseL5sFqf3bSKUj1TTAQhhdq4G2BcpDmnuf2MEDBuwFEVXdQ",
"signatures":"sg_RHW3xWCjg1LAeP5T3igSewnq4DsmpYPtat1jWk7MuHnTq9weVvwHzj62KNXDgadHc1kCWs2x9kctjGJV7SSkqMCVNEjvK",
"tx_type":"NameClaimTx",
"tx":{
"account_id":"ak_DzELMKnSfJcfnCUZ2SbXUSxRmFYtGrWmMuKiCx68YKLH26kwc",
"fee":16500000000000,
"name":"ae.chain",
"name_fee":352457800000000000000,
"name_salt":4697527392144391,
"nonce":163,
"type":"NameClaimTx",
"version":2
},
"fee":"16500000000000",
"size":205
}
],
"info":{
"name":"ae.chain",
"expiration":191206,
"winning_bid":"400000000000000000000",
"winning_bidder":"ak_DzELMKnSfJcfnCUZ2SbXUSxRmFYtGrWmMuKiCx68YKLH26kwc"
}
}
info.winning_bidder
is equal to ak_DzELMKnSfJcfnCUZ2SbXUSxRmFYtGrWmMuKiCx68YKLH26kwc
, but it should be ak_essw23rv1LdefJReNpoR5wiwtio44rqMdZEMf75F3Vsozg71M
, because 1000000000000000000000 is bigger than 400000000000000000000
johnsnewby commented
Yes! The number was being interpreted as a string, and MAX() is apparently permitted for strings... fixed.