This repository was archived by the owner on Jul 3, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export {
2626
2727import {
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 ,
You can’t perform that action at this time.
0 commit comments