Skip to content

Commit c025eac

Browse files
committed
fix: Add missing initialization calls for OFTAdapter in RLCAdapter and RLCOFT contracts
1 parent 133e830 commit c025eac

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ deploy-adapter:
1616
forge script script/RLCAdapter.s.sol:Deploy \
1717
--rpc-url $(SEPOLIA_RPC_URL) \
1818
--account $(ACCOUNT) \
19+
--ffi \
1920
--broadcast \
2021
-vvv
2122

@@ -24,6 +25,7 @@ deploy-oft:
2425
forge script script/RLCOFT.s.sol:Deploy \
2526
--rpc-url $(ARBITRUM_SEPOLIA_RPC_URL) \
2627
--account $(ACCOUNT) \
28+
--ffi \
2729
--broadcast \
2830
-vvv \
2931

foundry.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ fs_permissions = [{ access = "read-write", path = "./" }]
66
optimizer = true
77
optimizer_runs = 200
88

9+
## Needed by openzepplin upgrade plugin
10+
ast = true
11+
build_info = true
12+
extra_output = ["storageLayout"]
13+
914
remappings = [
1015
'@layerzerolabs/oft-evm-upgradeable/=lib/devtools/packages/oft-evm-upgradeable/',
1116
'@layerzerolabs/oft-evm/=lib/devtools/packages/oft-evm/',

src/RLCAdapter.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ contract RLCAdapter is OFTAdapterUpgradeable, UUPSUpgradeable, AccessControlDefa
2626
/// @notice Initializes the contract
2727
/// @param _owner Address of the contract owner
2828
function initialize(address _owner) public initializer {
29-
__OFTAdapter_init(_owner);
3029
__Ownable_init(_owner);
30+
__OFTAdapter_init(_owner);
3131
__UUPSUpgradeable_init();
3232
__AccessControlDefaultAdminRules_init(0, _owner);
3333
_grantRole(UPGRADER_ROLE, _owner);

src/RLCOFT.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ contract RLCOFT is OFTUpgradeable, UUPSUpgradeable, AccessControlDefaultAdminRul
2626
/// @param _symbol Symbol of the token
2727
/// @param _owner Address of the contract owner
2828
function initialize(string memory _name, string memory _symbol, address _owner) public initializer {
29-
__OFT_init(_name, _symbol, _owner);
3029
__Ownable_init(_owner);
30+
__OFT_init(_name, _symbol, _owner);
3131
__UUPSUpgradeable_init();
3232
__AccessControlDefaultAdminRules_init(0, _owner);
3333
_grantRole(UPGRADER_ROLE, _owner);

0 commit comments

Comments
 (0)