Skip to content

Commit 775d3d7

Browse files
committed
feat: enhance debug logging for safe transaction process and API Kit state
1 parent 8c0609c commit 775d3d7

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

safe-transaction/src/index.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,17 @@ async function run() {
6666
core.info(`🔐 Transaction signed with hash: ${safeTxHash}`);
6767

6868
// Debug: Log transaction data structure
69-
core.info(`📋 Safe Transaction Data: ${JSON.stringify(safeTransaction.data, null, 2)}`);
69+
core.info(
70+
`📋 Safe Transaction Data: ${JSON.stringify(
71+
safeTransaction.data,
72+
null,
73+
2
74+
)}`
75+
);
76+
77+
// Debug: Log API Kit state
78+
core.info(`🔧 API Kit chainId: ${apiKit.chainId}`);
79+
core.info(`🔧 API Kit txServiceUrl: ${apiKit.txServiceUrl}`);
7080

7181
// Propose transaction to the service
7282
await apiKit.proposeTransaction({
@@ -75,7 +85,7 @@ async function run() {
7585
safeTxHash: safeTxHash,
7686
senderAddress: wallet.address,
7787
senderSignature: signature.data,
78-
origin: 'GitHub Actions Safe Transaction Workflow',
88+
origin: "GitHub Actions Safe Transaction Workflow",
7989
});
8090

8191
core.info("📤 Transaction proposed to Safe service");

0 commit comments

Comments
 (0)