diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c6ae55bd..88fabd7c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,6 +49,38 @@ jobs: command: '[ "$(cast balance 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266)" = 10000000000000000000000 ]' # Default address on_retry_command: docker compose logs + - name: Wait for contract to be deployed + uses: nick-fields/retry@v2 + with: + timeout_seconds: 5 + retry_wait_seconds: 5 + max_attempts: 10 + shell: bash + command: docker compose logs | grep Bundler | awk '{ print $5 }' + on_retry_comand: docker compose logs + + - name: Get address + run: docker compose logs | grep Bundler | awk '{ print $5 }' + shell: bash + + - name: Get address of Bundler contract + run: echo "BUNDLER_CONTRACT_ADDRESS=$(docker compose logs | grep Bundler | awk '{ print $5 }')" >> $GITHUB_ENV + shell: bash + + - name: Show environment + run: env + shell: bash + + - name: Check that L2 contract was deployed + uses: nick-fields/retry@v2 + with: + timeout_seconds: 5 + retry_wait_seconds: 5 + max_attempts: 3 + shell: bash + command: '[ $(cast call $BUNDLER_CONTRACT_ADDRESS "trustedCaller()") = 0x000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266 ]' # Default address + on_retry_command: docker compose logs + test: strategy: fail-fast: true diff --git a/script/DeployL2.s.sol b/script/DeployL2.s.sol index 7dceab93..b0d3e54f 100644 --- a/script/DeployL2.s.sol +++ b/script/DeployL2.s.sol @@ -19,17 +19,17 @@ contract DeployL2 is ImmutableCreate2Deployer { uint24 public constant KEY_REGISTRY_MIGRATION_GRACE_PERIOD = 1 days; bytes32 internal constant STORAGE_RENT_CREATE2_SALT = - bytes32(0x6d2b70e39c6bc63763098e336323591eb77cd0c65360d99ba6ea4e0161f2b96c); + bytes32(0); bytes32 internal constant ID_REGISTRY_CREATE2_SALT = - bytes32(0x6d2b70e39c6bc63763098e336323591eb77cd0c63e0688f6d95afa008febf4d7); + bytes32(0); bytes32 internal constant KEY_REGISTRY_CREATE2_SALT = - bytes32(0x6d2b70e39c6bc63763098e336323591eb77cd0c62af4de6e1f0355029f357f47); + bytes32(0); bytes32 internal constant SIGNED_KEY_REQUEST_VALIDATOR_CREATE2_SALT = - bytes32(0x6d2b70e39c6bc63763098e336323591eb77cd0c6610c0841333604016684800c); + bytes32(0); bytes32 internal constant BUNDLER_CREATE2_SALT = - bytes32(0x6d2b70e39c6bc63763098e336323591eb77cd0c6e451fc0a34ec4c008c9a31fa); + bytes32(0); bytes32 internal constant RECOVERY_PROXY_CREATE2_SALT = - bytes32(0x6d2b70e39c6bc63763098e336323591eb77cd0c6110eaaca06f77900dac1cad3); + bytes32(0); struct DeploymentParams { address initialIdRegistryOwner;