Commit ae5a69f1 authored by elenadimitrova's avatar elenadimitrova Committed by Kelvin Fichter

Move incrementing the messageNonce to the end of function execution

parent 9442d059
......@@ -98,11 +98,12 @@ contract OVM_L2CrossDomainMessenger is
messageNonce
);
messageNonce += 1;
sentMessages[keccak256(xDomainCalldata)] = true;
_sendXDomainMessage(xDomainCalldata, _gasLimit);
emit SentMessage(_target, msg.sender, _message, messageNonce, _gasLimit);
messageNonce += 1;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment