We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
storage-ast-validator.js
Hey I have been running the sample-project and the hardhat-router continuously gives me the following error for multiple storage definitions
sample-project
☠ Duplicate namespaces slot found! > undefined found in storage contracts OwnableStorage,ProxyStorage,GlobalStorage,InitializableStorage,SettingsStorage
I believe this is a bug. A console log of the namespaces and duplicates found in storage-ast-validator.js are:
namespaces
duplicates
namespaces [ { contractName: 'OwnableStorage', slot: undefined }, { contractName: 'ProxyStorage', slot: undefined }, { contractName: 'GlobalStorage', slot: undefined }, { contractName: 'InitializableStorage', slot: undefined }, { contractName: 'SettingsStorage', slot: undefined } ] duplicates [ { slot: undefined, contracts: [ 'OwnableStorage', 'ProxyStorage', 'GlobalStorage', 'InitializableStorage', 'SettingsStorage' ] } ]
As a hack for now I do not push the "undefined" slot to the errors starting at L36 of storage-ast-validator.js:
if (duplicates) { const details = duplicates.map( (d) => ` > ${d.slot} found in storage contracts ${d.contracts}\n` ); duplicates.map( (d) => { if (d.slot == undefined) {console.log('Found undefined namespace')} else { errors.push({ msg: `Duplicate namespaces slot found!\n${details.join('')}`, }); } } ); }
Is the undefined namespace truly an issue? Reproduction code ssolson/sample-project@8b4740d
undefined
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hey I have been running the
sample-project
and the hardhat-router continuously gives me the following error for multiple storage definitionsI believe this is a bug.
A console log of the
namespaces
andduplicates
found instorage-ast-validator.js
are:As a hack for now I do not push the "undefined" slot to the errors starting at L36 of
storage-ast-validator.js
:Is the
undefined
namespace truly an issue?Reproduction code ssolson/sample-project@8b4740d
The text was updated successfully, but these errors were encountered: