SetID method should use pointer receiver.

This commit is contained in:
samguns 2017-10-31 17:21:50 +08:00
parent 373a09b2bc
commit 46e935c851
1 changed files with 1 additions and 1 deletions

View File

@ -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