Skip to content

Commit 798b03d

Browse files
committed
feat: update workflow example for contract upgrade process
1 parent 5e3a913 commit 798b03d

File tree

1 file changed

+17
-27
lines changed

1 file changed

+17
-27
lines changed

propose-safe-multisig-tx/README.md

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -29,33 +29,23 @@ This reusable GitHub Actions workflow automates the process of proposing transac
2929
In another workflow file, invoke this reusable workflow like so:
3030

3131
```yaml
32-
name: Propose Safe Transaction
33-
on:
34-
workflow_dispatch:
35-
inputs:
36-
safe-address:
37-
description: 'Safe contract address'
38-
required: true
39-
transaction-to:
40-
description: 'Target contract address'
41-
required: true
42-
transaction-data:
43-
description: 'Transaction data (0x prefixed)'
44-
required: false
45-
default: '0x'
46-
47-
jobs:
48-
safe-transaction:
49-
uses: ./.github/workflows/propose-safe-multisig-tx.yml
50-
secrets:
51-
safe-proposer-private-key: ${{ secrets.SAFE_PROPOSER_PRIVATE_KEY }}
52-
safe-api-key: ${{ secrets.SAFE_API_KEY }}
53-
with:
54-
rpc-url: ${{ vars.RPC_URL }}
55-
safe-address: ${{ inputs.safe-address }}
56-
transaction-to: ${{ inputs.transaction-to }}
57-
transaction-value: ${{ inputs.transaction-value }}
58-
transaction-data: ${{ inputs.transaction-data }}
32+
name: Upgrade contract
33+
34+
on:
35+
workflow_dispatch:
36+
37+
jobs:
38+
upgrade:
39+
uses: ./.github/workflows/propose-safe-multisig-tx.yml
40+
secrets:
41+
safe-proposer-private-key: ${{ secrets.SAFE_PROPOSER_PRIVATE_KEY }}
42+
safe-api-key: ${{ secrets.SAFE_API_KEY }}
43+
with:
44+
rpc-url: 'https://...'
45+
safe-address: '0xab...'
46+
transaction-to: '0xcd...'
47+
transaction-value: '0'
48+
transaction-data: '0xef' # Upgrade transaction calldata
5949
```
6050
6151
2. **Configure Secrets**

0 commit comments

Comments
 (0)