sourcifyeth / remix-sourcify

Remix plugin for source verify project
21 stars 12 forks source link

Wrong files sent to Sourcify server for verification #50

Closed FabijanC closed 3 years ago

FabijanC commented 3 years ago

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 variable sol should also be examined.