bug: make sure to invalidate the hash when changing an op's metadata

Michael Muré created

Change summary

bug/operation.go | 1 +
1 file changed, 1 insertion(+)

Detailed changes

bug/operation.go 🔗

@@ -137,6 +137,7 @@ func (op *OpBase) SetMetadata(key string, value string) {
 	}
 
 	op.Metadata[key] = value
+	op.hash = ""
 }
 
 // GetMetadata retrieve arbitrary metadata about the operation