aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/core
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-11-19 21:31:29 +0100
committerGitHub <noreply@github.com>2019-11-19 21:31:29 +0100
commit6345895a3d9a055927f1d4b78f254a55c1d271b6 (patch)
tree20d7d7c0e7cac6998f8af3bc3b431656a8d4dcff /bridge/core
parentf35845d328e7e1151051070b2f98b903050a1326 (diff)
parent76b612936dc52f7f50cd4a62de8cefa09ce65e1e (diff)
downloadgit-bug-6345895a3d9a055927f1d4b78f254a55c1d271b6.tar.gz
Merge pull request #258 from MichaelMure/fixes
Bridges fixes
Diffstat (limited to 'bridge/core')
-rw-r--r--bridge/core/token.go2
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))
}