In the original issue provided above, Sourcify receives a source file written by the user and one metadata file. The metadata file does not correspond to the user's source file, but to a file imported by the user's file.
Note to whoever will be fixing this: this code is probably a part of the problem. Notice how the variable metadata is defined and takes the last value in the nested loop. And the variable sol should also be examined.
Originally from https://github.com/ethereum/sourcify/issues/366.
In the original issue provided above, Sourcify receives a source file written by the user and one metadata file. The metadata file does not correspond to the user's source file, but to a file imported by the user's file.
Note to whoever will be fixing this: this code is probably a part of the problem. Notice how the variable
metadata
is defined and takes the last value in the nested loop. And the variablesol
should also be examined.