Skip to content

Commit 38d4b35

Browse files
committed
fix(safe): tx service url missing /api path
The Filecoin documentation doesn't exactly specifiy the full path to be used with the SafeAPIKit SDK. After some digging I found that the API isn't expected to be under /api by default. That means it needs to be specified explicitly. https://docs.safe.global/sdk/api-kit/guides/migrate-to-v2
1 parent eba09e0 commit 38d4b35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/safe/SafeApiKitStrategy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export class FilecoinMainnetStrategy implements SafeApiKitStrategy {
88
createInstance(): SafeApiKit.default {
99
return new SafeApiKit.default({
1010
chainId: BigInt(314),
11-
txServiceUrl: "https://transaction.safe.filecoin.io/",
11+
txServiceUrl: "https://transaction.safe.filecoin.io/api",
1212
});
1313
}
1414
}
@@ -17,7 +17,7 @@ export class FilecoinTestnetStrategy implements SafeApiKitStrategy {
1717
createInstance(): SafeApiKit.default {
1818
return new SafeApiKit.default({
1919
chainId: BigInt(314159),
20-
txServiceUrl: "https://transaction-testnet.safe.filecoin.io/",
20+
txServiceUrl: "https://transaction-testnet.safe.filecoin.io/api",
2121
});
2222
}
2323
}

0 commit comments

Comments
 (0)