Skip to content

Commit

Permalink
fix(MainchainGatewayV3): allow withdrawing ERC20 while snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
TuDo1403 committed Jan 2, 2025
1 parent 193eeed commit dc6e51f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mainchain/MainchainGatewayV3.sol
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ contract MainchainGatewayV3 is
) external reinitializer(5) {
_grantRole(_MIGRATOR_ROLE, migrator);
_restrict(this.requestDepositFor.selector, _toBitmap(TokenStandard.ERC20));
_restrict(this.submitWithdrawal.selector, _toBitmap(TokenStandard.ERC20));
// We allow pending ERC20 withdrawals while snapshotting.
// _restrict(this.submitWithdrawal.selector, _toBitmap(TokenStandard.ERC20));
if (tokens.length != 0 || recipients.length != 0 || remoteChainSelectors.length != 0) {
_whitelist(tokens, recipients, remoteChainSelectors);
}
Expand Down

0 comments on commit dc6e51f

Please sign in to comment.