Skip to content

Commit 2bf8c42

Browse files
committed
refactor: update API and Protocol Kit initialization to remove default exports
1 parent bcfbab4 commit 2bf8c42

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

safe-transaction/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ async function run() {
3535
core.info(`🔑 Proposer Address: ${wallet.address}`);
3636

3737
// Initialize API Kit
38-
const apiKit = new SafeApiKit.default({
38+
const apiKit = new SafeApiKit({
3939
chainId: 42161n, // Arbitrum
4040
apiKey: safeApiKey,
4141
});
4242

4343
// Initialize Protocol Kit
44-
const protocolKit = await Safe.default.init({
44+
const protocolKit = await Safe.init({
4545
provider: rpcUrl,
4646
signer: proposerPrivateKey,
4747
safeAddress: safeAddress,

safe-transaction/tsconfig.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
{
22
"compilerOptions": {
3-
"module": "nodenext",
3+
"module": "commonjs",
44
"target": "ES2022",
55
"declaration": true,
66
"sourceMap": true,
77
"outDir": "dist",
8-
"moduleResolution": "nodenext",
8+
"moduleResolution": "node",
99
"skipLibCheck": true,
1010
"esModuleInterop": true,
11-
"allowSyntheticDefaultImports": true
11+
"allowSyntheticDefaultImports": true,
12+
"forceConsistentCasingInFileNames": true,
13+
"strict": false
1214
},
1315
"include": ["src/**/*"],
1416
"exclude": ["node_modules"]

0 commit comments

Comments
 (0)