From 46e935c8514369064901828921943cd858e30a2e Mon Sep 17 00:00:00 2001 From: samguns Date: Tue, 31 Oct 2017 17:21:50 +0800 Subject: [PATCH] SetID method should use pointer receiver. --- transaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transaction.go b/transaction.go index fe82a7b..e5c51db 100644 --- a/transaction.go +++ b/transaction.go @@ -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