correct keccak256s

This commit is contained in:
derpy-duck 2023-11-03 14:13:16 -04:00 committed by Evan Gray
parent 5c39c8dfde
commit 80d75d96aa
1 changed files with 6 additions and 2 deletions

View File

@ -532,9 +532,13 @@ export async function getCCTPMessageLogURL(
let cctpLog; let cctpLog;
let messageSentLog; let messageSentLog;
const DepositForBurnTopic = ethers.utils.keccak256( const DepositForBurnTopic = ethers.utils.keccak256(
ethers.utils.toUtf8Bytes(
"DepositForBurn(uint64,address,uint256,address,bytes32,uint32,bytes32,bytes32)" "DepositForBurn(uint64,address,uint256,address,bytes32,uint32,bytes32,bytes32)"
)
);
const MessageSentTopic = ethers.utils.keccak256(
ethers.utils.toUtf8Bytes("MessageSent(bytes)")
); );
const MessageSentTopic = ethers.utils.keccak256("MessageSent(bytes)");
try { try {
if (getNameFromCCTPDomain(cctpKey.domain) === sourceChain) { if (getNameFromCCTPDomain(cctpKey.domain) === sourceChain) {
const cctpLogFilter = (log: ethers.providers.Log) => { const cctpLogFilter = (log: ethers.providers.Log) => {