diff options
author | Michael Muré <batolettre@gmail.com> | 2019-11-19 21:23:03 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2019-11-19 21:23:03 +0100 |
commit | 76b612936dc52f7f50cd4a62de8cefa09ce65e1e (patch) | |
tree | bc9d4facdf84b954b7f6719def4f1393ee410fab /bridge/core/token.go | |
parent | 5054b8dbdc6fa9c027c6eb172f6364235209362f (diff) | |
download | git-bug-76b612936dc52f7f50cd4a62de8cefa09ce65e1e.tar.gz |
bridge: use the target as well in the token ID
Diffstat (limited to 'bridge/core/token.go')
-rw-r--r-- | bridge/core/token.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/core/token.go b/bridge/core/token.go index 2ceabca2..449ebbb5 100644 --- a/bridge/core/token.go +++ b/bridge/core/token.go @@ -43,7 +43,7 @@ func NewToken(value, target string) *Token { } func (t *Token) ID() entity.Id { - sum := sha256.Sum256([]byte(t.Value)) + sum := sha256.Sum256([]byte(t.Target + t.Value)) return entity.Id(fmt.Sprintf("%x", sum)) } |