BOXFoundation / boxd

Blockchain for BOX Payout
MIT License
40 stars 10 forks source link

Querying balance of a contract gets wrong result #311

Closed wangjunbao2018 closed 5 years ago

wangjunbao2018 commented 5 years ago

In dev env, if querying the balance of a contract, it gets a wrong result.

Expected Behavior

The right balance of the contract.

Current Behavior

invalid box address format

Possible Solution

Steps to Reproduce

In dev env execute the cli:

 echo '{"addrs":["b5gFZApjM5oDMNFre49ZRkofSciTxwAnyJk"] }'|  http post 39.97.168.26:19110/v1/tx/getbalance
HTTP/1.1 200 OK
Content-Length: 64
Content-Type: application/json
Date: Mon, 19 Aug 2019 03:12:16 GMT
Grpc-Metadata-Content-Type: application/grpc
Vary: Origin

{
    "balances": [], 
    "code": -1, 
    "message": "invalid box address format"
}
Jerick26 commented 5 years ago

fixed.