Merge branch 'feature/fix-token-transfer-addr-checksums' into develop
This commit is contained in:
commit
fde14e878a
|
@ -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),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -216,8 +217,8 @@ const Transaction: React.FC = () => {
|
||||||
const _transfers: Transfer[] = [];
|
const _transfers: Transfer[] = [];
|
||||||
for (const t of r) {
|
for (const t of r) {
|
||||||
_transfers.push({
|
_transfers.push({
|
||||||
from: t.from,
|
from: ethers.utils.getAddress(t.from),
|
||||||
to: t.to,
|
to: ethers.utils.getAddress(t.to),
|
||||||
value: t.value,
|
value: t.value,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue