Skip to content

Commit a963d43

Browse files
committed
feat: remove from check to get past owners
1 parent 2e27d03 commit a963d43

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/mappings/diamond.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1997,9 +1997,9 @@ export function handleTransferSingle(event: TransferSingle): void {
19971997
const amount = event.params._value;
19981998
const timestamp = event.block.timestamp;
19991999

2000-
if (from.notEqual(Address.zero())) {
2001-
updateOwnership(id, from, amount.neg(), timestamp);
2002-
}
2000+
// if (from.notEqual(Address.zero())) {
2001+
// updateOwnership(id, from, amount.neg(), timestamp);
2002+
// }
20032003

20042004
if (to.notEqual(Address.zero())) {
20052005
updateOwnership(id, to, amount, timestamp);
@@ -2017,9 +2017,9 @@ export function handleTransferBatch(event: TransferBatch): void {
20172017
const id = ids[i].toString();
20182018
const amount = amounts[i];
20192019

2020-
if (from.notEqual(Address.zero())) {
2021-
updateOwnership(id, from, amount.neg(), timestamp);
2022-
}
2020+
// if (from.notEqual(Address.zero())) {
2021+
// updateOwnership(id, from, amount.neg(), timestamp);
2022+
// }
20232023

20242024
if (to.notEqual(Address.zero())) {
20252025
updateOwnership(id, to, amount, timestamp);

src/mappings/itemTransfers.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ export function handleTransferSingle(event: TransferSingle): void {
1313
const amount = event.params._value;
1414
const timestamp = event.block.timestamp;
1515

16-
if (from.notEqual(Address.zero())) {
17-
updateOwnership(id, from, amount.neg(), timestamp);
18-
}
16+
// if (from.notEqual(Address.zero())) {
17+
// updateOwnership(id, from, amount.neg(), timestamp);
18+
// }
1919

2020
if (to.notEqual(Address.zero())) {
2121
updateOwnership(id, to, amount, timestamp);
@@ -33,9 +33,9 @@ export function handleTransferBatch(event: TransferBatch): void {
3333
const id = ids[i].toString();
3434
const amount = amounts[i];
3535

36-
if (from.notEqual(Address.zero())) {
37-
updateOwnership(id, from, amount.neg(), timestamp);
38-
}
36+
// if (from.notEqual(Address.zero())) {
37+
// updateOwnership(id, from, amount.neg(), timestamp);
38+
// }
3939

4040
if (to.notEqual(Address.zero())) {
4141
updateOwnership(id, to, amount, timestamp);

0 commit comments

Comments
 (0)