Skip to content
This repository was archived by the owner on Jul 3, 2026. It is now read-only.

Commit 60fd8a8

Browse files
committed
Alias writeContractCompat as writeContract
1 parent 81b58a9 commit 60fd8a8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/ccip-js/src/api.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export {
2626

2727
import {
2828
readContractCompat as readCompat,
29-
writeContractCompat as writeCompat,
29+
writeContractCompat as writeContract,
3030
waitForTransactionReceiptCompat as waitCompat,
3131
getTransactionReceiptCompat as getTxReceiptCompat,
3232
getBlockNumberCompat as getBlockNumberCompatLocal,
@@ -635,7 +635,7 @@ export const createClient = (): Client => {
635635
throw new Error('PARAMETER INPUT ERROR: Invalid approve amount. Amount can not be negative')
636636
}
637637

638-
const approveTxHash = await writeCompat(
638+
const approveTxHash = await writeContract(
639639
options.client as any,
640640
{
641641
abi: IERC20ABI,
@@ -917,7 +917,7 @@ export const createClient = (): Client => {
917917
}
918918
}
919919

920-
const transferTokensTxHash = await writeCompat(
920+
const transferTokensTxHash = await writeContract(
921921
options.client as any,
922922
{
923923
abi: RouterABI,
@@ -987,7 +987,7 @@ export const createClient = (): Client => {
987987
}
988988
}
989989

990-
const transferTokensTxHash = await writeCompat(
990+
const transferTokensTxHash = await writeContract(
991991
options.client as any,
992992
{
993993
abi: RouterABI,

0 commit comments

Comments
 (0)