Output contract name where storage inconsistency was found (#4357)

This commit is contained in:
Hadrien Croubois
2023-06-15 23:54:35 +02:00
committed by GitHub
parent c014c8f148
commit 6724873895

View File

@ -10,6 +10,7 @@ for (const name in oldLayout) {
if (name in newLayout) { if (name in newLayout) {
const report = getStorageUpgradeReport(oldLayout[name], newLayout[name], {}); const report = getStorageUpgradeReport(oldLayout[name], newLayout[name], {});
if (!report.ok) { if (!report.ok) {
console.log(`Storage layout incompatilibity found in ${name}:`);
console.log(report.explain()); console.log(report.explain());
process.exitCode = 1; process.exitCode = 1;
} }