This commit is contained in:
aozhiwei 2023-07-15 15:14:06 +08:00
parent 73d14ecc4b
commit 01c2de3d02

View File

@ -26,7 +26,17 @@ function registerMetaClass(fileName, primKey, wrapClass) {
function checkNetData(net) {
net['Events'].forEach(
(item) => {
console.log(item);
let found = false;
net['Contract'].forEach(
(c) => {
if (c['name'] == item['contract_name']) {
found = true;
}
}
);
if (!found) {
throw new Error('checkNetData contract found:' + utils.jsonEncode(item));
}
}
);
}