diff options
author | Felix Lange <fjl@twurst.com> | 2015-03-18 06:49:49 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-03-18 06:49:49 +0800 |
commit | cb009a5c4da40e1987b9dfcffa4d52bcae41e4e1 (patch) | |
tree | cc09681b0e4ba1391dfcd27c34f941fc304dedcb /rlp/encode_test.go | |
parent | 86661de07746cd4e4ad8d016afee9fa8074aa141 (diff) | |
download | dexon-cb009a5c4da40e1987b9dfcffa4d52bcae41e4e1.tar.gz dexon-cb009a5c4da40e1987b9dfcffa4d52bcae41e4e1.tar.zst dexon-cb009a5c4da40e1987b9dfcffa4d52bcae41e4e1.zip |
rlp: don't panic for nil *big.Int
All other pointer types can handle nil just fine.
Diffstat (limited to 'rlp/encode_test.go')
-rw-r--r-- | rlp/encode_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rlp/encode_test.go b/rlp/encode_test.go index c283fbd57..852cb6f59 100644 --- a/rlp/encode_test.go +++ b/rlp/encode_test.go @@ -196,6 +196,7 @@ var encTests = []encTest{ {val: (*uint)(nil), output: "80"}, {val: (*string)(nil), output: "80"}, {val: (*[]byte)(nil), output: "80"}, + {val: (*big.Int)(nil), output: "80"}, {val: (*[]string)(nil), output: "C0"}, {val: (*[]interface{})(nil), output: "C0"}, {val: (*[]struct{ uint })(nil), output: "C0"}, |