Fix token transfer addresses checksum

This commit is contained in:
Willian Mitsuda 2021-07-03 17:17:47 -03:00
parent 8b05309c7d
commit a852418cb6
1 changed files with 5 additions and 4 deletions

View File

@ -106,11 +106,12 @@ const Transaction: React.FC = () => {
} }
tokenTransfers.push({ tokenTransfers.push({
token: l.address, token: l.address,
from: ethers.utils.hexDataSlice( from: ethers.utils.getAddress(
ethers.utils.arrayify(l.topics[1]), ethers.utils.hexDataSlice(ethers.utils.arrayify(l.topics[1]), 12)
12 ),
to: ethers.utils.getAddress(
ethers.utils.hexDataSlice(ethers.utils.arrayify(l.topics[2]), 12)
), ),
to: ethers.utils.hexDataSlice(ethers.utils.arrayify(l.topics[2]), 12),
value: BigNumber.from(l.data), value: BigNumber.from(l.data),
}); });
} }