This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix an edge case in saving flattened source files (#141)
* Fix an edge case in saving flattened source files Suppose there are two contracts in a project. Both named "ContractA". If we override the name of the contract #1 with "ContractB" its name is going to be "ContractB" but its derived name is going to be equal to "ContractA". SourceCodeService while generating sources does not reach into overrides so the source name is always going to be the "derivedName". We should always choose the derived name (if present, if it's not, the name is equal to the derived name). The edge case we've hit is that in the above example, while checking for contract clashes we had an array that looked like `[ContractA, ContractB]` instead of `[ContractA, ContractA]`. * changeset * format
- Loading branch information