Open tim-schultz opened 1 year ago
It would be great to be able to run tests against any environment. Currently they will only pass you have your rpc set to point at Sepolia.
This can be changed by deploying a mock version of EAS instead of referencing the version that is deployed on Sepolia https://github.com/gitcoinco/eas-proxy/blob/7f6700b981b8ae77a84a77f51d1a80dc8b5d051e/test/GitcoinAttester.ts#L89
Change
Testing
Both Contracts
GitcoinAttester
GitcoinVerifier
_hashArray
bytes32 private constant EIP712DOMAIN_TYPEHASH
,bytes32 private constant STAMP_TYPEHASH
,bytes32 private constant PASSPORT_TYPEHASH
can be prehashed and the values can be assigned to the bytes32 value - will minimize gas in deploymentGeneral