Skip to content

Commit

Permalink
fix Uint256 reverse bug (DNAProject#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
xizho10 authored and laizy committed Jun 14, 2018
1 parent 54114e5 commit 7cf43b5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions http/base/rest/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -514,12 +514,7 @@ func GetMemPoolTxState(cmd map[string]interface{}) map[string]interface{} {
if !ok {
return ResponsePack(berr.INVALID_PARAMS)
}
bys, err := common.HexToBytes(str)
if err != nil {
return ResponsePack(berr.INVALID_PARAMS)
}
var hash common.Uint256
err = hash.Deserialize(bytes.NewReader(bys))
hash, err := common.Uint256FromHexString(str)
if err != nil {
return ResponsePack(berr.INVALID_PARAMS)
}
Expand Down

0 comments on commit 7cf43b5

Please sign in to comment.