diff --git a/packages/web/components/Player/Section/Attestations.tsx b/packages/web/components/Player/Section/Attestations.tsx
index ea96aebed..536a128e5 100644
--- a/packages/web/components/Player/Section/Attestations.tsx
+++ b/packages/web/components/Player/Section/Attestations.tsx
@@ -52,15 +52,15 @@ export const Attestations: React.FC<{ player: Player }> = ({ player }) => {
return (
- {player?.ethereumAddress.toLocaleLowerCase === address?.toLocaleLowerCase && (
+ {player?.ethereumAddress.toLowerCase() === address?.toLowerCase() && (
Your Attestations: ({attestations?.length})
{attestations?.map((att, i) => {
const attestor = att[3].value;
const timeCreated = att[1].value.value;
-
const attestationVal = att[0].value;
+
return (
= ({ player }) => {
{player?.ethereumAddress.toLocaleLowerCase() !== address?.toLocaleLowerCase() && (
<>
-
Your Attestations: ({attestations?.length})
-
- {attestations?.map((att, i) => {
- const attestor = att[3].value;
- const timeCreated = att[1].value.value;
+ Your Attestations: ({attestations?.length})
+
+ {attestations?.map((att, i) => {
+ const attestor = att[3].value;
+ const timeCreated = att[1].value.value;
+ const attestationVal = att[0].value;
- const attestationVal = att[0].value;
- return (
-
-
- {attestationVal.value}
-
-
- By {attestor}
-
- {timeCreated}
-
- );
- })}
-
-
-
-
+
+ {attestationVal.value}
+
+
+ By {attestor}
+
+ {timeCreated}
+
+ );
+ })}
+
+
>
-
)}
+
+
);
};
diff --git a/packages/web/lib/hooks/useEAS.ts b/packages/web/lib/hooks/useEAS.ts
index 9e483bb23..c78314190 100644
--- a/packages/web/lib/hooks/useEAS.ts
+++ b/packages/web/lib/hooks/useEAS.ts
@@ -63,7 +63,7 @@ export const useEAS = () => {
const encodedData = schemaEncoder.encodeData([
{ name: 'attestation', value: message, type: 'string' },
{ name: 'timeCreated', value: timeRightNow, type: 'string' },
- { name: 'xp', value: xp ?? '0', type: 'string' },
+ { name: 'xp', value: xp ?? '¿?', type: 'string' },
]);
const tx = await eas.attest({
schema: schemaUID,
@@ -82,27 +82,27 @@ export const useEAS = () => {
async function fetchData() {
// Define the GraphQL query
const query = `
- query Attestations($recipient: String!) {
- attestations(
- where: {
- schemaId: { equals: "0xd4c0003240401da8b17fbe710a41e4c8e690a0afef796ab6d5871b69ac15b0d1" }
- recipient: { equals: $recipient }
+ query Attestations($recipient: String!) {
+ attestations(
+ where: {
+ schemaId: { equals: "0xd4c0003240401da8b17fbe710a41e4c8e690a0afef796ab6d5871b69ac15b0d1" }
+ recipient: { equals: $recipient }
+ }
+ take: 25
+ ) {
+ id
+ attester
+ recipient
+ refUID
+ revocable
+ revocationTime
+ expirationTime
+ data
+ schemaId
+ timeCreated
}
- take: 25
- ) {
- id
- attester
- recipient
- refUID
- revocable
- revocationTime
- expirationTime
- data
- schemaId
- timeCreated
}
- }
- `;
+ `;
const checkSumAddress = ethers.getAddress(recipient);
// Define the GraphQL endpoint
diff --git a/packages/web/lib/hooks/useEthersProvider.ts b/packages/web/lib/hooks/useEthersProvider.ts
index 9ac025a2b..981089d1f 100644
--- a/packages/web/lib/hooks/useEthersProvider.ts
+++ b/packages/web/lib/hooks/useEthersProvider.ts
@@ -66,7 +66,6 @@ export function useViemClients({
return clients;
}
-
export function useEthersProvider({
chain = optimism,
}: { chain?: Chain } = {}) {