@@ -97,12 +97,6 @@ func (h *Header) EncodeJSON() (string, error) {
9797 return string (data ), err
9898}
9999
100- // String implements the fmt.Stringer interface to print some semi-meaningful
101- // data dump of the header for debugging purposes.
102- func (h * Header ) String () string {
103- return h .header .String ()
104- }
105-
106100func (h * Header ) GetParentHash () * Hash { return & Hash {h .header .ParentHash } }
107101func (h * Header ) GetUncleHash () * Hash { return & Hash {h .header .UncleHash } }
108102func (h * Header ) GetCoinbase () * Address { return & Address {h .header .Coinbase } }
@@ -174,12 +168,6 @@ func (b *Block) EncodeJSON() (string, error) {
174168 return string (data ), err
175169}
176170
177- // String implements the fmt.Stringer interface to print some semi-meaningful
178- // data dump of the block for debugging purposes.
179- func (b * Block ) String () string {
180- return b .block .String ()
181- }
182-
183171func (b * Block ) GetParentHash () * Hash { return & Hash {b .block .ParentHash ()} }
184172func (b * Block ) GetUncleHash () * Hash { return & Hash {b .block .UncleHash ()} }
185173func (b * Block ) GetCoinbase () * Address { return & Address {b .block .Coinbase ()} }
@@ -249,12 +237,6 @@ func (tx *Transaction) EncodeJSON() (string, error) {
249237 return string (data ), err
250238}
251239
252- // String implements the fmt.Stringer interface to print some semi-meaningful
253- // data dump of the transaction for debugging purposes.
254- func (tx * Transaction ) String () string {
255- return tx .tx .String ()
256- }
257-
258240func (tx * Transaction ) GetData () []byte { return tx .tx .Data () }
259241func (tx * Transaction ) GetGas () int64 { return int64 (tx .tx .Gas ()) }
260242func (tx * Transaction ) GetGasPrice () * BigInt { return & BigInt {tx .tx .GasPrice ()} }
@@ -347,12 +329,6 @@ func (r *Receipt) EncodeJSON() (string, error) {
347329 return string (data ), err
348330}
349331
350- // String implements the fmt.Stringer interface to print some semi-meaningful
351- // data dump of the transaction receipt for debugging purposes.
352- func (r * Receipt ) String () string {
353- return r .receipt .String ()
354- }
355-
356332func (r * Receipt ) GetPostState () []byte { return r .receipt .PostState }
357333func (r * Receipt ) GetCumulativeGasUsed () int64 { return int64 (r .receipt .CumulativeGasUsed ) }
358334func (r * Receipt ) GetBloom () * Bloom { return & Bloom {r .receipt .Bloom } }
0 commit comments