Skip to content

Commit

Permalink
fix: retrieving incorrect "source" from block
Browse files Browse the repository at this point in the history
  • Loading branch information
inkeliz committed Apr 30, 2018
1 parent 09930e1 commit cef638c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Block/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ func (s *ChangeBlock) GetTarget() (Wallet.Address, BlockHash) {
func (u *UniversalBlock) GetTarget() (destination Wallet.Address, source BlockHash) {

if u.Link == nil {
source = u.Link
source = u.Source
destination = u.Destination
} else {
source = u.Source
source = u.Link
destination = Wallet.PublicKey(u.Link).CreateAddress()
}

Expand Down

0 comments on commit cef638c

Please sign in to comment.