Skip to content

Commit

Permalink
refactor(upgreadeable_contracts): mv setNonce after getting the nonce…
Browse files Browse the repository at this point in the history
… within _emitUserRequestForSignatureMaybeRelayDataWithHashiAndIncreaseNonce
  • Loading branch information
allemanfredi committed Jun 18, 2024
1 parent acfdfed commit f6fdd26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/upgradeable_contracts/BasicHomeBridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ contract BasicHomeBridge is EternalStorage, Validatable, BasicBridge, BasicToken
internal
{
uint256 currentNonce = nonce();
setNonce(currentNonce + 1);
emit UserRequestForSignature(_receiver, _amount, bytes32(currentNonce));
_maybeRelayDataWithHashi(abi.encodePacked(_receiver, _amount, bytes32(currentNonce)));
setNonce(currentNonce + 1);
}

function setMessagesSigned(bytes32 _hash, bool _status) internal {
Expand Down

0 comments on commit f6fdd26

Please sign in to comment.