Fix missing hex encoding of darksidewalletd's sendrawtransaction response

This commit is contained in:
Taylor Hornby 2020-05-28 16:05:43 -06:00
parent bbb0e88449
commit 2d8a55c53f
1 changed files with 2 additions and 1 deletions

View File

@ -383,7 +383,8 @@ func darksideRawRequest(method string, params []json.RawMessage) (json.RawMessag
return nil, errors.New("transaction serialization is too long")
}
state.incomingTransactions = append(state.incomingTransactions, txBytes)
return tx.GetDisplayHash(), nil
return []byte(hex.EncodeToString(tx.GetDisplayHash())), nil
default:
return nil, errors.New("there was an attempt to call an unsupported RPC")
}