Fix token transfer addresses checksum
This commit is contained in:
parent
8b05309c7d
commit
a852418cb6
|
@ -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),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue