1
This commit is contained in:
parent
73d14ecc4b
commit
01c2de3d02
@ -26,7 +26,17 @@ function registerMetaClass(fileName, primKey, wrapClass) {
|
|||||||
function checkNetData(net) {
|
function checkNetData(net) {
|
||||||
net['Events'].forEach(
|
net['Events'].forEach(
|
||||||
(item) => {
|
(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));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user