|
1 | | -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DAMMQNrJ.js","./hooks.module-B8FgZbnF.js","./index-CD56fPSg.js","./browser-B07ueiOg.js","./metamask-sdk-CBPkM48o.js"])))=>i.map(i=>d[i]); |
| 1 | +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-g1zAAyIC.js","./hooks.module-B8FgZbnF.js","./index-BMJAHJRz.js","./browser-CelLZBdi.js","./metamask-sdk-B-ZW1FBT.js"])))=>i.map(i=>d[i]); |
2 | 2 | var __defProp = Object.defineProperty; |
3 | 3 | var __typeError = (msg) => { |
4 | 4 | throw TypeError(msg); |
@@ -20450,7 +20450,7 @@ async function call(client2, args) { |
20450 | 20450 | } catch (err2) { |
20451 | 20451 | const data3 = getRevertErrorData(err2); |
20452 | 20452 | const { offchainLookup, offchainLookupSignature } = await __vitePreload(async () => { |
20453 | | - const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-D7AJRNlZ.js"); |
| 20453 | + const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-BjDeLmXb.js"); |
20454 | 20454 | return { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 }; |
20455 | 20455 | }, true ? [] : void 0, import.meta.url); |
20456 | 20456 | if (client2.ccipRead !== false && (data3 == null ? void 0 : data3.slice(0, 10)) === offchainLookupSignature && to) |
@@ -133526,7 +133526,7 @@ function version4(parameters) { |
133526 | 133526 | }; |
133527 | 133527 | })(); |
133528 | 133528 | const { createCoinbaseWalletSDK } = await __vitePreload(async () => { |
133529 | | - const { createCoinbaseWalletSDK: createCoinbaseWalletSDK2 } = await import("./index-DAMMQNrJ.js"); |
| 133529 | + const { createCoinbaseWalletSDK: createCoinbaseWalletSDK2 } = await import("./index-g1zAAyIC.js"); |
133530 | 133530 | return { createCoinbaseWalletSDK: createCoinbaseWalletSDK2 }; |
133531 | 133531 | }, true ? __vite__mapDeps([0,1]) : void 0, import.meta.url); |
133532 | 133532 | const sdk = createCoinbaseWalletSDK({ |
@@ -133701,7 +133701,7 @@ function version3(parameters) { |
133701 | 133701 | if (!walletProvider) { |
133702 | 133702 | const CoinbaseWalletSDK = await (async () => { |
133703 | 133703 | const { default: SDK } = await __vitePreload(async () => { |
133704 | | - const { default: SDK2 } = await import("./index-CD56fPSg.js").then((n2) => n2.i); |
| 133704 | + const { default: SDK2 } = await import("./index-BMJAHJRz.js").then((n2) => n2.i); |
133705 | 133705 | return { default: SDK2 }; |
133706 | 133706 | }, true ? __vite__mapDeps([2,1,3]) : void 0, import.meta.url); |
133707 | 133707 | if (typeof SDK !== "function" && typeof SDK.default === "function") |
@@ -133941,7 +133941,7 @@ function metaMask$1(parameters = {}) { |
133941 | 133941 | var _a4, _b2, _c2, _d3, _e6; |
133942 | 133942 | const MetaMaskSDK = await (async () => { |
133943 | 133943 | const { default: SDK } = await __vitePreload(async () => { |
133944 | | - const { default: SDK2 } = await import("./metamask-sdk-CBPkM48o.js"); |
| 133944 | + const { default: SDK2 } = await import("./metamask-sdk-B-ZW1FBT.js"); |
133945 | 133945 | return { default: SDK2 }; |
133946 | 133946 | }, true ? __vite__mapDeps([4,3]) : void 0, import.meta.url); |
133947 | 133947 | if (typeof SDK !== "function" && typeof SDK.default === "function") |
@@ -134293,7 +134293,7 @@ function walletConnect$1(parameters) { |
134293 | 134293 | if (!optionalChains.length) |
134294 | 134294 | return; |
134295 | 134295 | const { EthereumProvider } = await __vitePreload(async () => { |
134296 | | - const { EthereumProvider: EthereumProvider2 } = await import("./index.es-CqtlYMYM.js"); |
| 134296 | + const { EthereumProvider: EthereumProvider2 } = await import("./index.es-BAa8DaLZ.js"); |
134297 | 134297 | return { EthereumProvider: EthereumProvider2 }; |
134298 | 134298 | }, true ? [] : void 0, import.meta.url); |
134299 | 134299 | return await EthereumProvider.init({ |
@@ -143998,6 +143998,9 @@ const TransactionConfirmation = ({ name: name2, symbol, imageUrl, amount, toAddr |
143998 | 143998 | }; |
143999 | 143999 | const SendCoin = ({ chainId, contractAddress: contractAddress2 }) => { |
144000 | 144000 | var _a4, _b2, _c2, _d3, _e6; |
| 144001 | + const { clearCachedBalances } = useClearCachedBalances(); |
| 144002 | + const publicClient = usePublicClient({ chainId }); |
| 144003 | + const indexerClient = useIndexerClient(chainId); |
144001 | 144004 | const { setNavigation } = useNavigation(); |
144002 | 144005 | const { setIsBackButtonEnabled } = useNavigationContext(); |
144003 | 144006 | const { analytics } = useAnalyticsContext(); |
@@ -144128,14 +144131,23 @@ const SendCoin = ({ chainId, contractAddress: contractAddress2 }) => { |
144128 | 144131 | setIsSendTxnPending(true); |
144129 | 144132 | const sendAmount = parseUnits$5(amountToSendFormatted, decimals); |
144130 | 144133 | const txOptions = { |
144131 | | - onSettled: (result) => { |
| 144134 | + onSettled: async (hash3) => { |
144132 | 144135 | setIsBackButtonEnabled(true); |
144133 | | - if (result) { |
| 144136 | + if (hash3) { |
144134 | 144137 | setNavigation({ |
144135 | 144138 | location: "home" |
144136 | 144139 | }); |
| 144140 | + setIsSendTxnPending(false); |
| 144141 | + if (publicClient) { |
| 144142 | + await waitForTransactionReceipt({ |
| 144143 | + indexerClient, |
| 144144 | + txnHash: hash3, |
| 144145 | + publicClient, |
| 144146 | + confirmations: TRANSACTION_CONFIRMATIONS_DEFAULT |
| 144147 | + }); |
| 144148 | + clearCachedBalances(); |
| 144149 | + } |
144137 | 144150 | } |
144138 | | - setIsSendTxnPending(false); |
144139 | 144151 | } |
144140 | 144152 | }; |
144141 | 144153 | if (isNativeCoin) { |
@@ -144175,10 +144187,13 @@ const SendCollectible = ({ chainId, contractAddress: contractAddress2, tokenId } |
144175 | 144187 | const { chains: chains2 } = useConfig$1(); |
144176 | 144188 | const connectedChainId = useChainId(); |
144177 | 144189 | const { address: accountAddress = "", connector } = useAccount(); |
| 144190 | + const indexerClient = useIndexerClient(chainId); |
| 144191 | + const publicClient = usePublicClient({ chainId }); |
144178 | 144192 | const isConnectorSequenceBased = !!((_a4 = connector == null ? void 0 : connector._wallet) == null ? void 0 : _a4.isSequenceBased); |
144179 | 144193 | const isCorrectChainId = connectedChainId === chainId; |
144180 | 144194 | const showSwitchNetwork = !isCorrectChainId && !isConnectorSequenceBased; |
144181 | 144195 | const { switchChain: switchChain2 } = useSwitchChain(); |
| 144196 | + const { clearCachedBalances } = useClearCachedBalances(); |
144182 | 144197 | const amountInputRef = reactExports.useRef(null); |
144183 | 144198 | const [amount, setAmount] = reactExports.useState("0"); |
144184 | 144199 | const [toAddress, setToAddress] = reactExports.useState(""); |
@@ -144316,14 +144331,23 @@ const SendCollectible = ({ chainId, contractAddress: contractAddress2, tokenId } |
144316 | 144331 | } |
144317 | 144332 | const sendAmount = parseUnits$5(amountToSendFormatted, decimals); |
144318 | 144333 | const txOptions = { |
144319 | | - onSettled: (result) => { |
| 144334 | + onSettled: async (hash3) => { |
144320 | 144335 | setIsBackButtonEnabled(true); |
144321 | | - if (result) { |
| 144336 | + if (hash3) { |
144322 | 144337 | setNavigation({ |
144323 | 144338 | location: "home" |
144324 | 144339 | }); |
144325 | 144340 | } |
144326 | 144341 | setIsSendTxnPending(false); |
| 144342 | + if (publicClient) { |
| 144343 | + await waitForTransactionReceipt({ |
| 144344 | + indexerClient, |
| 144345 | + txnHash: hash3, |
| 144346 | + publicClient, |
| 144347 | + confirmations: TRANSACTION_CONFIRMATIONS_DEFAULT |
| 144348 | + }); |
| 144349 | + clearCachedBalances(); |
| 144350 | + } |
144327 | 144351 | } |
144328 | 144352 | }; |
144329 | 144353 | switch (contractType) { |
|
0 commit comments