Skip to content

Commit

Permalink
set userAddress for transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
franzns committed Mar 13, 2023
1 parent a69605f commit a53c4f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions subgraphs/reliquary/src/mappings/reliquary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ export function transfer(event: Transfer): void {
reliquary.relicCount--;
reliquary.save();
relic.user = getOrCreateUser(Address.zero()).address;
relic.userAddress = getOrCreateUser(Address.zero()).address;
relic.save();

const pool = getPoolOrThrow(relic.pid);
Expand All @@ -365,6 +366,7 @@ export function transfer(event: Transfer): void {
);
const userTo = getOrCreateUser(Address.fromBytes(relic.user));
relic.user = userTo.id;
relic.userAddress = userTo.id;
relic.save();

dailyRelicSnapshot.user = userTo.id;
Expand Down

0 comments on commit a53c4f9

Please sign in to comment.