diff options
author | Steven Roose <stevenroose@gmail.com> | 2018-04-05 20:13:02 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2018-04-05 20:13:02 +0800 |
commit | ec8ee611caefb5c5ad5d796178e94c1919260df4 (patch) | |
tree | 275a9f91e33abfdafa0a6fdf113e4601616545cd /core/database_util_test.go | |
parent | 1e248f3a6e14f3bfc9ebe1b315c4194300220f68 (diff) | |
download | go-tangerine-ec8ee611caefb5c5ad5d796178e94c1919260df4.tar go-tangerine-ec8ee611caefb5c5ad5d796178e94c1919260df4.tar.gz go-tangerine-ec8ee611caefb5c5ad5d796178e94c1919260df4.tar.bz2 go-tangerine-ec8ee611caefb5c5ad5d796178e94c1919260df4.tar.lz go-tangerine-ec8ee611caefb5c5ad5d796178e94c1919260df4.tar.xz go-tangerine-ec8ee611caefb5c5ad5d796178e94c1919260df4.tar.zst go-tangerine-ec8ee611caefb5c5ad5d796178e94c1919260df4.zip |
core/types: remove String methods from struct types (#16205)
Most of these methods did not contain all the relevant information
inside the object and were not using a similar formatting type.
Moreover, the existence of a suboptimal String method breaks usage
with more advanced data dumping tools like go-spew.
Diffstat (limited to 'core/database_util_test.go')
-rw-r--r-- | core/database_util_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/database_util_test.go b/core/database_util_test.go index ab4e45a47..aa87fa6f8 100644 --- a/core/database_util_test.go +++ b/core/database_util_test.go @@ -317,7 +317,7 @@ func TestLookupStorage(t *testing.T) { if hash != block.Hash() || number != block.NumberU64() || index != uint64(i) { t.Fatalf("tx #%d [%x]: positional metadata mismatch: have %x/%d/%d, want %x/%v/%v", i, tx.Hash(), hash, number, index, block.Hash(), block.NumberU64(), i) } - if tx.String() != txn.String() { + if tx.Hash() != txn.Hash() { t.Fatalf("tx #%d [%x]: transaction mismatch: have %v, want %v", i, tx.Hash(), txn, tx) } } |