diff --git a/app/libs/shared_modules/src/event_history/schemas/event_history.schema.ts b/app/libs/shared_modules/src/event_history/schemas/event_history.schema.ts index 8c9c881..df1f894 100644 --- a/app/libs/shared_modules/src/event_history/schemas/event_history.schema.ts +++ b/app/libs/shared_modules/src/event_history/schemas/event_history.schema.ts @@ -130,8 +130,12 @@ export class EventHistory { name: null, symbol: null, }; - instance.fromAddress = log.topics[1].substring(26); - instance.toAddress = log.topics[2].substring(26); + instance.fromAddress = ethers + .getAddress(`0x${log.topics[1].substring(26)}`) + .toLowerCase(); + instance.toAddress = ethers + .getAddress(`0x${log.topics[2].substring(26)}`) + .toLowerCase(); // instance.tokenId = '0'; instance.tokenValue = tokenValue; // instance.nativeAmount = '0'; @@ -173,8 +177,12 @@ export class EventHistory { name: null, symbol: null, }; - instance.fromAddress = log.topics[1].substring(26); - instance.toAddress = log.topics[2].substring(26); + instance.fromAddress = ethers + .getAddress(`0x${log.topics[1].substring(26)}`) + .toLowerCase(); + instance.toAddress = ethers + .getAddress(`0x${log.topics[2].substring(26)}`) + .toLowerCase(); instance.tokenId = tokenId; // instance.tokenValue = '0'; // instance.nativeAmount = '0';