openzeppelin-foundry-upgrades
openzeppelin-foundry-upgrades copied to clipboard
bug: forge build fails
trying to build this repo, steps:
git clone https://github.com/OpenZeppelin/openzeppelin-foundry-upgrades --recursive
forge install foundry-rs/forge-std forge install OpenZeppelin/openzeppelin-foundry-upgrades forge install OpenZeppelin/[email protected] forge install OpenZeppelin/[email protected]
Set the following in remappings.txt:
@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/ @openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/
aodhgan@aodhgans-MBP openzeppelin-foundry-upgrades % forge build
[⠊] Compiling...
[⠃] Compiling 81 files with Solc 0.8.25
[⠊] Solc 0.8.25 finished in 858.33ms
Error:
Compiler run failed:
Error (6160): Wrong argument count for function call: 2 arguments given but expected 1.
--> src/Upgrades.sol:445:24:
|
445 | return address(new UpgradeableBeacon(impl, initialOwner));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error (6160): Wrong argument count for function call: 1 arguments given but expected 0.
--> test/contracts/Greeter.sol:16:9:
|
16 | __Ownable_init(initialOwner);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error (6160): Wrong argument count for function call: 1 arguments given but expected 0.
--> test/contracts/GreeterProxiable.sol:17:9:
|
17 | __Ownable_init(initialOwner);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error (6160): Wrong argument count for function call: 1 arguments given but expected 0.
--> test/contracts/GreeterV2.sol:17:9:
|
17 | __Ownable_init(initialOwner);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error (6160): Wrong argument count for function call: 1 arguments given but expected 0.
--> test/contracts/GreeterV2Proxiable.sol:20:9:
|
20 | __Ownable_init(initialOwner);
|