Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
12 changes: 6 additions & 6 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[submodule "lib/openzeppelin-contracts-upgradeable"]
path = lib/openzeppelin-contracts-upgradeable
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable
[submodule "lib/openzeppelin-contracts"]
path = lib/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "lib/murky"]
path = lib/murky
url = https://github.com/dmfxyz/murky
[submodule "lib/openzeppelin-contracts"]
path = lib/openzeppelin-contracts
url = https://github.com/openzeppelin/openzeppelin-contracts
[submodule "lib/openzeppelin-contracts-upgradeable"]
path = lib/openzeppelin-contracts-upgradeable
url = https://github.com/openzeppelin/openzeppelin-contracts-upgradeable
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2023 Avail Project
Copyright 2025 Avail Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
3 changes: 1 addition & 2 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ libs = ["lib"]
optimizer = true
optimizer_runs = 999999
via_ir = true
solc_version = "0.8.25"
solc_version = "0.8.29"
evm_version = "cancun"

[profile.intense.fuzz]
Expand All @@ -17,5 +17,4 @@ mainnet = "https://ethereum-rpc.publicnode.com"
base = "https://base-rpc.publicnode.com"
sepolia = "https://ethereum-sepolia.publicnode.com"
goerli = "https://ethereum-goerli.publicnode.com"

# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options
2 changes: 1 addition & 1 deletion lib/openzeppelin-contracts
2 changes: 1 addition & 1 deletion lib/openzeppelin-contracts-upgradeable
2 changes: 0 additions & 2 deletions remappings.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/
@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/
ds-test/=lib/forge-std/lib/ds-test/src/
erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/
forge-std/=lib/forge-std/src/
Expand Down
2 changes: 1 addition & 1 deletion script/DeployAvailWormhole.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ contract Deploy is Script {
address admin = vm.envAddress("ADMIN");
address impl = address(new AvailWormhole());
AvailWormhole avail = AvailWormhole(address(new TransparentUpgradeableProxy(impl, admin, "")));
avail.initialize();
avail.initialize(admin);
vm.stopBroadcast();
}
}
5 changes: 2 additions & 3 deletions src/AvailWormhole.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ contract AvailWormhole is AccessControlDefaultAdminRulesUpgradeable, ERC20Permit
_disableInitializers();
}

function initialize() external reinitializer(2) {
function initialize(address governance) external initializer {
__ERC20Permit_init("Avail (Wormhole)");
__ERC20_init("Avail (Wormhole)", "AVAIL");
// We don't need to reset the owner during reinit
// __AccessControlDefaultAdminRules_init(0, governance);
__AccessControlDefaultAdminRules_init(0, governance);
}

function mint(address account, uint256 amount) external onlyRole(MINTER_ROLE) {
Expand Down
Loading
Loading