In the lzReceive
function, the contract is using the config.gateway
address to verify if the caller is the expected gateway. Therefore, the require statement will revert the transaction if the condition is not met.
Here's the relevant part of the code:
This line ensures that the function is only executed if the caller _msgSender()
is the address specified in config.gateway
.
The require statement will revert the transaction if the condition is not met, providing a basic access control mechanism.
To ensure that the config.gateway
address is set correctly , you should consider the following:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.