Skip to content

Commit

Permalink
test: remove unused event and fix script failure
Browse files Browse the repository at this point in the history
  • Loading branch information
adu-web3 committed Jul 3, 2024
1 parent 5a1c08c commit 708cd22
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
6 changes: 5 additions & 1 deletion script/3_Setup.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ contract SetupScript is BaseScript {
exocoreLzEndpoint = ILayerZeroEndpointV2(stdJson.readAddress(deployedContracts, ".exocore.lzEndpoint"));
require(address(exocoreLzEndpoint) != address(0), "exocoreLzEndpoint address should not be empty");

if (!useExocorePrecompileMock) {
_bindPrecompileMocks();
}

// transfer some gas fee to exocore validator set address
clientChain = vm.createSelectFork(clientChainRPCURL);
_topUpPlayer(clientChain, address(0), deployer, exocoreValidatorSet.addr, 0.2 ether);
Expand Down Expand Up @@ -98,7 +102,7 @@ contract SetupScript is BaseScript {
whitelistTokensBytes32[1] = bytes32(bytes20(VIRTUAL_STAKED_ETH_ADDRESS));
decimals[1] = 18;
tvlLimits[1] = 1e8 ether;
names[1] = "RestakeToken";
names[1] = "StakedETH";
metaData[1] = "";

uint256 messageLength = TOKEN_ADDRESS_BYTES_LENGTH * whitelistTokensBytes32.length + 2;
Expand Down
1 change: 0 additions & 1 deletion src/storage/ClientChainGatewayStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ contract ClientChainGatewayStorage is BootstrapStorage {
/* ----------------------------- restaking ----------------------------- */
event ClaimSucceeded(address token, address recipient, uint256 amount);
event WithdrawRewardResult(bool indexed success, address indexed token, address indexed withdrawer, uint256 amount);
event RegisterTokensResult(bool indexed success);

/* -------------------------------------------------------------------------- */
/* Errors */
Expand Down
1 change: 0 additions & 1 deletion test/foundry/ExocoreDeployer.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ contract ExocoreDeployer is Test {

event MessageSent(GatewayStorage.Action indexed act, bytes32 packetId, uint64 nonce, uint256 nativeFee);
event NewPacket(uint32, address, bytes32, uint64, bytes);
event RegisterTokensResult(bool indexed success);
event WhitelistTokenAdded(address _token);
event VaultCreated(address underlyingToken, address vault);

Expand Down

0 comments on commit 708cd22

Please sign in to comment.