id: counter-rollout
description: Deploy Counter and run one setup call.

steps:
  - id: deploy-counter
    kind: deploy
    contract: Counter
    saveAs: Counter
    strategy: create2
    create2:
      factory: $target.create2.factory
      salt: $param.salts.Counter.deploySalt
      expectedAddress: $param.salts.Counter.expectedAddress
      leadingZeroBytes: $target.create2.leadingZeroBytes

  - id: call-counter
    kind: call
    contract: Counter
    calls:
      - method: incBy
        args:
          - $param.initialIncrement

  - id: check-counter
    kind: check
    contract: Counter
    calls:
      - method: x
        expect: $param.expectedValue
