@kimafinance/kima-transaction-widget 1.4.0 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +7 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2593,7 +2593,12 @@ function useBalance() {
|
|
|
2593
2593
|
const userAddress = mode === "light" /* light */ ? lightDemoAccounts.EVM : walletAddress;
|
|
2594
2594
|
const enabled = !!userAddress && !!tokenOptions && !!selectedCoin && pools.length > 0 && isEVMChain2(sourceChain.shortName) && (!!walletProvider || mode === "light" /* light */);
|
|
2595
2595
|
const { data: allowanceData } = useQuery3({
|
|
2596
|
-
queryKey: [
|
|
2596
|
+
queryKey: [
|
|
2597
|
+
"evmAllowance",
|
|
2598
|
+
userAddress,
|
|
2599
|
+
sourceChain.shortName,
|
|
2600
|
+
selectedCoin
|
|
2601
|
+
],
|
|
2597
2602
|
queryFn: () => getTokenAllowance({
|
|
2598
2603
|
tokenOptions,
|
|
2599
2604
|
selectedCoin,
|
|
@@ -3897,7 +3902,7 @@ function useBalance3() {
|
|
|
3897
3902
|
const { tronWeb, userAddress: walletAddress } = useTronProvider();
|
|
3898
3903
|
const userAddress = mode === "light" /* light */ ? lightDemoAccounts.TRX : walletAddress;
|
|
3899
3904
|
const { data: allowanceData } = useQuery9({
|
|
3900
|
-
queryKey: ["tronAllowance", userAddress],
|
|
3905
|
+
queryKey: ["tronAllowance", userAddress, selectedCoin],
|
|
3901
3906
|
queryFn: async () => await getTokenAllowance3({
|
|
3902
3907
|
tokenOptions,
|
|
3903
3908
|
selectedCoin,
|