Output contract name where storage inconsistency was found (#4357)
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user