Skip to content

Commit

Permalink
Add disableInitializer() in erc20 v4 gateway (#261)
Browse files Browse the repository at this point in the history
- closes #260
  • Loading branch information
viraj124 authored Aug 30, 2024
1 parent 897b017 commit 10d0b44
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/popular-spoons-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@fuel-bridge/solidity-contracts': major
'@fuel-bridge/test-utils': major
---

add disable initializer in erc20 v4 gateway
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ contract FuelERC20GatewayV4 is
/// @notice The eth withdrawal limit amount for each token.
mapping(address => uint256) public limitAmount;

/// @notice disabling initialization
/// @custom:oz-upgrades-unsafe-allow constructor
constructor() {
_disableInitializers();
}

/// @notice Contract initializer to setup starting values
/// @param fuelMessagePortal The FuelMessagePortal contract
function initialize(FuelMessagePortal fuelMessagePortal) public initializer {
Expand Down

0 comments on commit 10d0b44

Please sign in to comment.