Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ethereum: Validate valid_till_block_height #68

Merged
merged 8 commits into from
Apr 25, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion eth/contracts/EthErc20FastBridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ contract EthErc20FastBridge is Initializable, UUPSUpgradeable, AccessControlUpgr
address payable _recipient,
uint256 _nonce,
uint256 _amount,
string memory _unlock_recipient
string calldata _unlock_recipient,
uint _valid_till_block_height
) external payable whenNotPaused isWhitelisted(_token) {
require(block.number < _valid_till_block_height, "Invalid block number");
sept-en marked this conversation as resolved.
Show resolved Hide resolved
require(_recipient != address(0) && _recipient != msg.sender, "Wrong recipient provided");
require(_amount != 0, "Wrong amount provided");

Expand Down
4 changes: 3 additions & 1 deletion eth/res/EthErc20FastBridge_flat.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2463,8 +2463,10 @@ contract EthErc20FastBridge is Initializable, UUPSUpgradeable, AccessControlUpgr
address payable _recipient,
uint256 _nonce,
uint256 _amount,
string memory _unlock_recipient
string calldata _unlock_recipient,
uint _valid_till_block_height
) external payable whenNotPaused isWhitelisted(_token) {
require(block.number < _valid_till_block_height, "Invalid block number");
sept-en marked this conversation as resolved.
Show resolved Hide resolved
sept-en marked this conversation as resolved.
Show resolved Hide resolved
require(_recipient != address(0) && _recipient != msg.sender, "Wrong recipient provided");
require(_amount != 0, "Wrong amount provided");

Expand Down
Loading