Skip to content

Commit b801503

Browse files
committed
refactor: rename transaction-target-address to transaction-to for consistency
1 parent 661e17a commit b801503

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/safe-transaction.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
description: 'Address of the Safe contract'
1616
required: true
1717
type: string
18-
transaction-target-address:
18+
transaction-to:
1919
description: 'Target address for the transaction'
2020
required: true
2121
type: string
@@ -80,7 +80,7 @@ jobs:
8080
INPUT_SAFE_API_KEY: ${{ secrets.safe-api-key }}
8181
INPUT_RPC_URL: ${{ inputs.rpc-url }}
8282
INPUT_SAFE_ADDRESS: ${{ inputs.safe-address }}
83-
INPUT_TARGET_ADDRESS: ${{ inputs.transaction-target-address }}
83+
INPUT_TRANSACTION_TO: ${{ inputs.transaction-to }}
8484
INPUT_CHAIN_ID: ${{ inputs.chain-id }}
8585
INPUT_TRANSACTION_VALUE: ${{ inputs.transaction-value }}
8686
INPUT_TRANSACTION_DATA: ${{ inputs.transaction-data }}

safe-transaction/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This reusable GitHub Actions workflow automates the process of creating and prop
1212
| **rpc-url** | RPC URL for the blockchain network | Yes | - |
1313
| **chain-id** | Chain ID of the blockchain network | No | `42161` (Arbitrum) |
1414
| **safe-address** | Address of the Safe contract | Yes | - |
15-
| **transaction-target-address** | Target address for the transaction | Yes | - |
15+
| **transaction-to** | Target address for the transaction | Yes | - |
1616
| **safe-api-key** | Safe API key for transaction service | Yes | - |
1717
| **transaction-value** | Value to send in the transaction (in wei) | No | `0` |
1818
| **transaction-data** | Transaction data/calldata | No | `0x` |
@@ -44,7 +44,7 @@ This reusable GitHub Actions workflow automates the process of creating and prop
4444
safe-address:
4545
description: 'Safe contract address'
4646
required: true
47-
transaction-target-address:
47+
transaction-to:
4848
description: 'Target contract address'
4949
required: true
5050
chain-id:
@@ -65,7 +65,7 @@ This reusable GitHub Actions workflow automates the process of creating and prop
6565
safe-api-key: ${{ secrets.SAFE_API_KEY }}
6666
with:
6767
safe-address: ${{ inputs.safe-address }}
68-
transaction-target-address: ${{ inputs.transaction-target-address }}
68+
transaction-to: ${{ inputs.transaction-to }}
6969
chain-id: ${{ inputs.chain-id }}
7070
transaction-data: ${{ inputs.transaction-data }}
7171
```

safe-transaction/src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ async function run() {
1111
const rpcUrl = process.env.INPUT_RPC_URL;
1212
const chainId = process.env.INPUT_CHAIN_ID || "42161"; // Default to Arbitrum
1313
const safeAddress = process.env.INPUT_SAFE_ADDRESS;
14-
const transactionTargetAddress = process.env.INPUT_TARGET_ADDRESS;
14+
const transactionTo = process.env.INPUT_TRANSACTION_TO;
1515
const safeApiKey = process.env.INPUT_SAFE_API_KEY;
1616
const transactionValue = process.env.INPUT_TRANSACTION_VALUE || "0";
1717
const transactionData = process.env.INPUT_TRANSACTION_DATA || "0x";
@@ -21,7 +21,7 @@ async function run() {
2121
!proposerPrivateKey ||
2222
!rpcUrl ||
2323
!safeAddress ||
24-
!transactionTargetAddress ||
24+
!transactionTo ||
2525
!safeApiKey
2626
) {
2727
throw new Error("Missing required environment variables");
@@ -30,7 +30,7 @@ async function run() {
3030
core.info(`🚀 Starting Safe transaction proposal...`);
3131
core.info(`🌐 Chain ID: ${chainId}`);
3232
core.info(`📍 Safe Address: ${safeAddress}`);
33-
core.info(`🎯 Target Address: ${transactionTargetAddress}`);
33+
core.info(`🎯 Target Address: ${transactionTo}`);
3434

3535
// Initialize wallet
3636
const wallet = new Wallet(proposerPrivateKey);
@@ -53,7 +53,7 @@ async function run() {
5353

5454
// Create transaction
5555
const safeTransactionData: MetaTransactionData = {
56-
to: transactionTargetAddress,
56+
to: transactionTo,
5757
value: transactionValue,
5858
data: transactionData,
5959
operation: OperationType.Call,

0 commit comments

Comments
 (0)