mirror of
https://github.com/selfxyz/self.git
synced 2026-01-13 16:47:57 -05:00
* refactor: generate scope for SelfVerificationRoot upon deploment Utilise Poseidon to generate the scope for the deploying contract instead of relying on utilizing the Scope Generator tool on the frontend and calling a function that inherits the _setScope function * style: use explicit import for PoseidonT3 * fix: link Poseidon library in TestSelfVerificationRoot deployments * fix: Use same logic in SelfVerificationRoot as in hashEndpointWithScope * refactor: use hardcoded PoseidonT3 addresses for Celo Mainnet + Sepolia Also allowed functionality for testing environments which have a fresh deploy each time they are spun up, and which now utilize the testSetScope function for tests relying on TestSelfVerificationRoot * style: change setTestScope to setGenerateScope for clarity * refactor: Move logic out of SelfVerificationRoot into util files * chore: update version * fix: sepolia chain id * fmt --------- Co-authored-by: ayman <aymanshaik1015@gmail.com>