From 76b612936dc52f7f50cd4a62de8cefa09ce65e1e Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Tue, 19 Nov 2019 21:23:03 +0100 Subject: bridge: use the target as well in the token ID --- bridge/core/token.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bridge/core/token.go') 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)) } -- cgit