Merge pull request #6 from samguns/part_4

SetID method should use pointer receiver.
This commit is contained in:
Ivan Kuznetsov 2018-03-01 20:37:14 +07:00 committed by GitHub
commit bf64f33069
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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