aboutsummaryrefslogtreecommitdiffstats
path: root/core/types/log_test.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2017-02-24 00:58:15 +0800
committerFelix Lange <fjl@twurst.com>2017-03-07 19:45:12 +0800
commit8cf08e4b25c4cd0e0955598342394f34feecca0c (patch)
treedcd215bd6a31dcf78aebcb8132b0cb522890a8b9 /core/types/log_test.go
parenteee96a5bb7439ccee583d23e53be018fe7c35cfb (diff)
downloadgo-tangerine-8cf08e4b25c4cd0e0955598342394f34feecca0c.tar.gz
go-tangerine-8cf08e4b25c4cd0e0955598342394f34feecca0c.tar.zst
go-tangerine-8cf08e4b25c4cd0e0955598342394f34feecca0c.zip
core/types: use gencodec for JSON marshaling code
Diffstat (limited to 'core/types/log_test.go')
-rw-r--r--core/types/log_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/types/log_test.go b/core/types/log_test.go
index bf742ccac..0e56acfe4 100644
--- a/core/types/log_test.go
+++ b/core/types/log_test.go
@@ -18,6 +18,7 @@ package types
import (
"encoding/json"
+ "fmt"
"reflect"
"testing"
@@ -96,7 +97,7 @@ var unmarshalLogTests = map[string]struct {
},
"missing data": {
input: `{"address":"0xecf8f87f810ecf450940c9f60066b4a7a501d6a7","blockHash":"0x656c34545f90a730a19008c0e7a7cd4fb3895064b48d6d69761bd5abad681056","blockNumber":"0x1ecfa4","logIndex":"0x2","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x00000000000000000000000080b2c9d7cbbf30a1b0fc8983c647d754c6525615","0x000000000000000000000000f9dff387dcb5cc4cca5b91adb07a95f54e9f1bb6"],"transactionHash":"0x3b198bfd5d2907285af009e9ae84a0ecd63677110d89d7e030251acb87f6487e","transactionIndex":"0x3"}`,
- wantError: errMissingLogFields,
+ wantError: fmt.Errorf("missing required field 'data' for Log"),
},
}