Add FV specs for Ownable and Ownable2Steps (#4094)

Co-authored-by: Santiago Palladino <spalladino@gmail.com>
Co-authored-by: Francisco <fg@frang.io>
This commit is contained in:
Hadrien Croubois
2023-03-08 19:30:07 +01:00
committed by GitHub
parent 4fb6833e32
commit aaad1f4a4f
8 changed files with 228 additions and 2 deletions

View File

@ -64,7 +64,7 @@ async function runCertora(spec, contract, files, options = []) {
stream.end();
// write results in markdown format
writeEntry(spec, contract, code || signal, (await output).match(/https:\S*/)[0]);
writeEntry(spec, contract, code || signal, (await output).match(/https:\S*/)?.[0]);
// write all details
console.error(`+ certoraRun ${args.join(' ')}\n` + (await output));
@ -103,7 +103,7 @@ function writeEntry(spec, contract, success, url) {
contract,
success ? ':x:' : ':heavy_check_mark:',
`[link](${url})`,
`[link](${url.replace('/jobStatus/', '/output/')})`,
`[link](${url?.replace('/jobStatus/', '/output/')})`,
),
);
}