From 63a6032eacd955668909924003bf5d5a1dd55284 Mon Sep 17 00:00:00 2001 From: MaxMustermann2 <82761650+MaxMustermann2@users.noreply.github.com> Date: Mon, 3 Jun 2024 13:57:02 +0000 Subject: [PATCH] doc(test): update bootstrap unit test comments --- test/foundry/Bootstrap.t.sol | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/test/foundry/Bootstrap.t.sol b/test/foundry/Bootstrap.t.sol index def2b0a7..644ee7c3 100644 --- a/test/foundry/Bootstrap.t.sol +++ b/test/foundry/Bootstrap.t.sol @@ -73,10 +73,10 @@ contract BootstrapTest is Test { appendedToken = new MyToken("MyToken2", "MYT2", 18, addrs, 1000 * 10 ** 18); appendedWhitelistTokensForUpgrade.push(address(appendedToken)); - /// deploy vault implementationcontract that has logics called by proxy + // deploy vault implementationcontract that has logics called by proxy vaultImplementation = new Vault(); - /// deploy the vault beacon that store the implementation contract address + // deploy the vault beacon that store the implementation contract address vaultBeacon = new UpgradeableBeacon(address(vaultImplementation)); // deploy BeaconProxyBytecode to store BeaconProxyBytecode @@ -145,17 +145,10 @@ contract BootstrapTest is Test { address(capsuleBeacon), address(beaconProxyBytecode) ); - // uint256 tokenCount = bootstrap.getWhitelistedTokensCount(); - // address[] memory tokensForCall = new address[](tokenCount); - // for (uint256 i = 0; i < tokenCount; i++) { - // tokensForCall[i] = bootstrap.whitelistTokens(i); - // } + // we could also use encodeWithSelector and supply .initialize.selector instead. bytes memory initialization = abi.encodeCall( clientGatewayLogic.initialize, ( - // bootstrap.exocoreChainId(), - // bootstrap.exocoreValidatorSetAddress(), - // tokensForCall payable(exocoreValidatorSet), appendedWhitelistTokensForUpgrade )