When using JSONRPC, do not double-encode JSON.

This commit is contained in:
Jae Kwon
2015-03-30 15:14:33 -07:00
parent ffa82b5c61
commit 1a4aab4c35
6 changed files with 39 additions and 88 deletions

View File

@@ -71,6 +71,9 @@ func TestHTTPGenPriv(t *testing.T) {
func TestHTTPGetAccount(t *testing.T) {
byteAddr, _ := hex.DecodeString(userAddr)
acc := getAccount(t, "HTTP", byteAddr)
if acc == nil {
t.Fatalf("Account was nil")
}
if bytes.Compare(acc.Address, byteAddr) != 0 {
t.Fatalf("Failed to get correct account. Got %x, expected %x", acc.Address, byteAddr)
}