Compare commits

...

3 Commits

Author SHA1 Message Date
hueso
a1d56bfdd0 add basic error handling on subgraph queries
Some checks failed
CI script / lint (push) Has been cancelled
CI script / build (push) Has been cancelled
CI script / SonarCloud (push) Has been cancelled
Deploy FrontEnd / deploy-staging (push) Has been cancelled
Deploy FrontEnd / deploy-production (push) Has been cancelled
2025-10-24 20:34:08 -03:00
hueso
ed9fa61365 fix: chainID as hex on web3onboard call 2025-10-24 20:33:06 -03:00
hueso
8f20913f71 fix: sellerId as string 2025-10-24 20:16:01 -03:00
3 changed files with 6 additions and 2 deletions

View File

@ -15,7 +15,7 @@ const targetNetwork = ref(DEFAULT_NETWORK);
const web3Onboard = init({
wallets: [injected],
chains: Object.values(Networks).map((network) => ({
id: network.id,
id: `0x${network.id.toString(16)}`,
token: network.nativeCurrency.symbol,
label: network.name,
rpcUrl: network.rpcUrls.default.http[0],

View File

@ -94,6 +94,10 @@ const getValidDeposits = async (
// remove doubles from sellers list
const depositData = await depositLogs.json();
if (!depositData.data) {
console.error("Error fetching deposit logs");
return [];
}
const depositAddeds = depositData.data.depositAddeds;
const uniqueSellers = depositAddeds.reduce(
(acc: Record<Address, boolean>, deposit: any) => {

View File

@ -69,7 +69,7 @@ const sendNetwork = async () => {
/>
<div v-if="flowStep == Step.Network">
<SendNetwork
:sellerId="user.sellerId.value"
:sellerId="String(user.sellerId.value)"
:offer="Number(user.seller.value.offer)"
:selected-token="user.selectedToken.value"
v-if="!loading"