Skip to content

Commit

Permalink
fix build after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-rosianu committed Feb 16, 2024
1 parent 95e43f3 commit a6862b3
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions action/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -188022,6 +188022,8 @@ const robot = (app) => {
mainOwner = newOwners[0];
}
const extraOwners = newOwners.filter(x => !originalOwners.includes(x));
const printableFilenames = files.map(file => file.filename).join(', ');
console.log(`Names of changed files: ${printableFilenames}. original owners=${originalOwners}. new owners: ${newOwners}`);
const allOwners = [];
const allOwnersToCheck = [mainOwner, ...extraOwners];
let apiUrl = 'https://next-api.multiversx.com';
Expand Down Expand Up @@ -188155,7 +188157,9 @@ const robot = (app) => {
async function verify(body, address, message) {
const signature = /[0-9a-fA-F]{128}/.exec(body)?.at(0);
if (signature) {
return verifySignature(signature, address, message);
const verifyResult = await verifySignature(signature, address, message);
console.log(`verifying signature for address ${address}, message ${message}, and signature ${signature}. Result=${verifyResult}`);
return verifyResult;
}
const txHash = /[0-9a-fA-F]{64}/.exec(body)?.at(0);
if (txHash) {
Expand Down Expand Up @@ -188255,10 +188259,7 @@ const robot = (app) => {
});
const body = pullRequest.body || '';
const bodies = [...comments.data.map(x => x.body || ''), body];
let adminAddress = process.env.ADMIN_ADDRESS;
if (!adminAddress) {
adminAddress = 'erd1cevsw7mq5uvqymjqzwqvpqtdrhckehwfz99n7praty3y7q2j7yps842mqh';
}
const adminAddress = process.env.ADMIN_ADDRESS;
if (adminAddress) {
const invalidAddresses = await multiVerify(bodies, [adminAddress], commitShas);
if (invalidAddresses && invalidAddresses.length === 0) {
Expand Down Expand Up @@ -188294,7 +188295,7 @@ const robot = (app) => {
await fail('No owners identified');
return;
}
console.log(`identity owners. check mode=${checkMode}. value=${owners}`);
console.log(`Asset owners. check mode=${checkMode}. value=${owners}`);
const invalidAddresses = await multiVerify(bodies, owners, commitShas);
if (!invalidAddresses) {
await fail('Failed to verify owners');
Expand Down

0 comments on commit a6862b3

Please sign in to comment.