Skip to content

Commit

Permalink
Merge pull request #72 from aavegotchi/SUB-108-original-owner-is-null
Browse files Browse the repository at this point in the history
SUB-108: Fix originalOwner is null
  • Loading branch information
cinnabarhorse authored Oct 28, 2022
2 parents e9bb263 + a96b0aa commit 481fc7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ node_modules/
.env
yarn-error.log
cache
tests/.bin/
tests/.bin/

.vscode
3 changes: 3 additions & 0 deletions src/utils/helpers/diamond.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,9 @@ export function updateAavegotchiInfo(
let owner = getOrCreateUser(gotchiInfo.owner.toHexString());
owner.save();
gotchi.owner = owner.id;
if (!gotchi.originalOwner) {
gotchi.originalOwner = owner.id;
}
gotchi.name = gotchiInfo.name;
gotchi.nameLowerCase = gotchiInfo.name.toLowerCase();
gotchi.randomNumber = gotchiInfo.randomNumber;
Expand Down

0 comments on commit 481fc7a

Please sign in to comment.