Merge pull request #6 from samguns/part_4
SetID method should use pointer receiver.
This commit is contained in:
commit
bf64f33069
|
@ -24,7 +24,7 @@ func (tx Transaction) IsCoinbase() bool {
|
|||
}
|
||||
|
||||
// SetID sets ID of a transaction
|
||||
func (tx Transaction) SetID() {
|
||||
func (tx *Transaction) SetID() {
|
||||
var encoded bytes.Buffer
|
||||
var hash [32]byte
|
||||
|
||||
|
|
Loading…
Reference in New Issue