Open agnarsong opened 1 year ago
get proof function:
let proof:any
while (true) {
try {
proof = await crossChainMessenger.getMessageProof(withdrawETHtx)
if (proof.stateRoot.length == 66){
console.log("proof.stateRoot: ", proof.stateRoot)
break;
}
} catch (error) {
console.error('请求 proof 异常:', error.message);
console.log("等待 10 秒后, 再次请求...");
await wait(10);
continue
}
}
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
add try&catch into finalize.ts
Expected behavior
finalizeMessage is success
Screenshots It can be seen that the contents of the three newly added log outputs are consistent, although errors were encountered in the first two times: "Provided message could not be verified". However, the third time was able to successfully finalize the message.