Skip to content

Commit

Permalink
update sign payload
Browse files Browse the repository at this point in the history
  • Loading branch information
SneakySensei committed Sep 2, 2024
1 parent ef57d0c commit 752f4e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ export default function PlayerScreen({
const signClient = new SignClient(walletClient);

const attestation = await signClient.attest({
game_id: RockPaperScissors.gameId,
season_id: "6dd7cc5f-45ab-42d8-84f9-9bc0a5ff2121",
played_game_id: gameState.room_id,
player_id: gameState.player.player_id,
tier_id: tier,
});
Expand Down
11 changes: 4 additions & 7 deletions packages/frontend/src/utils/service/sign-protocol.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,26 +37,23 @@ export default class SignClient {
}

async attest({
game_id,
played_game_id,
player_id,
season_id,
tier_id,
}: {
game_id: string;
season_id: string;
played_game_id: string;
player_id: string;
tier_id: string;
}): Promise<AttestationResult> {
try {
const response = await this.signClient.createAttestation({
schemaId: "0x92",
data: {
game_id,
season_id,
played_game_id,
player_id,
tier_id,
},
indexingValue: game_id,
indexingValue: played_game_id,
});

return response;
Expand Down

0 comments on commit 752f4e3

Please sign in to comment.