Skip to content

Commit

Permalink
doc(test): update bootstrap unit test comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMustermann2 committed Jun 3, 2024
1 parent cabcaa9 commit 63a6032
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions test/foundry/Bootstrap.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
)
Expand Down

0 comments on commit 63a6032

Please sign in to comment.