Skip to content

Add contract claimability analysis script #178

Merged
fr1jo merged 5 commits intofrijo/release/PI-15from
PI-15-unclaimable-contracts
Feb 5, 2026
Merged

Add contract claimability analysis script #178
fr1jo merged 5 commits intofrijo/release/PI-15from
PI-15-unclaimable-contracts

Conversation

@pocikerim
Copy link
Contributor

No description provided.

@pocikerim pocikerim requested a review from fr1jo February 3, 2026 20:54
Copy link
Contributor

@fr1jo fr1jo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simple logging additions, otherwise, lgtm!

isUpgraded: upgrade.isUpgraded && upgrade.originalVersion && !isVersionClaimable(upgrade.originalVersion)
});
}
} catch (e) {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you just put a simple error log here saying that this failed.

why is this try catch? what happens if this fails?

return v;
}, 2);
return { version, method: 'VERSION()' };
} catch (e) {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simple error message here as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This catch is intentionally silent detectSafeVersion is called for every contract address, and VERSION() / getThreshold() are expected to fail on non-Safe contracts.
I refactored here to make more clear and added comments, here: 3cfdfb6

}
}

function parseVersion(version) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you write a quick comment here on why we need to omit "-L2"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here: ca5b71f

@fr1jo fr1jo merged commit e98fab3 into frijo/release/PI-15 Feb 5, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants