diff --git a/script/18_SimulateReceive.s.sol b/script/18_SimulateReceive.s.sol index eb75176f..a67d8a0d 100644 --- a/script/18_SimulateReceive.s.sol +++ b/script/18_SimulateReceive.s.sol @@ -48,12 +48,7 @@ contract SimulateReceive is Script, StdCheats { bytes memory extraData = ""; vm.startBroadcast(); bytes memory encoded = abi.encodeWithSelector( - IOAppCore(receiver).endpoint().lzReceive.selector, - origin, - receiver, - guid, - payload, - extraData + IOAppCore(receiver).endpoint().lzReceive.selector, origin, receiver, guid, payload, extraData ); console.logBytes(encoded); IOAppCore(receiver).endpoint().lzReceive(origin, receiver, guid, payload, extraData); diff --git a/script/19_DeployFaucet.s.sol b/script/19_DeployFaucet.s.sol index 0be66d4c..4ab4bc4c 100644 --- a/script/19_DeployFaucet.s.sol +++ b/script/19_DeployFaucet.s.sol @@ -36,7 +36,9 @@ contract DeployScript is BaseScript { address exoEthProxyAdmin = address(new ProxyAdmin()); CombinedFaucet exoEthFaucetLogic = new CombinedFaucet(); CombinedFaucet exoEthFaucet = CombinedFaucet( - payable(address(new TransparentUpgradeableProxy(address(exoEthFaucetLogic), address(exoEthProxyAdmin), ""))) + payable( + address(new TransparentUpgradeableProxy(address(exoEthFaucetLogic), address(exoEthProxyAdmin), "")) + ) ); // give 1 exoETH per request exoEthFaucet.initialize(exocoreValidatorSet.addr, tokenAddr, 1 ether); diff --git a/src/core/CombinedFaucet.sol b/src/core/CombinedFaucet.sol index 4d27844e..8362747e 100644 --- a/src/core/CombinedFaucet.sol +++ b/src/core/CombinedFaucet.sol @@ -64,7 +64,7 @@ contract CombinedFaucet is function _withdraw(address dst) internal { require( - block.timestamp >= lastRequestTime[dst] + ONE_DAY || lastRequestTime[msg.sender] == 0, + block.timestamp >= lastRequestTime[dst] + ONE_DAY || lastRequestTime[dst] == 0, "CombinedFaucet: 24h rate limit breached" ); lastRequestTime[dst] = block.timestamp; diff --git a/test/foundry/unit/CombinedFaucet.t.sol b/test/foundry/unit/CombinedFaucet.t.sol index 29fa315e..c7906894 100644 --- a/test/foundry/unit/CombinedFaucet.t.sol +++ b/test/foundry/unit/CombinedFaucet.t.sol @@ -218,10 +218,10 @@ contract NativeTokenFaucetTest is Test { vm.prank(owner); faucet.withdraw(user1); - // Fast forward time by 24 hours + // // Fast forward time by 24 hours vm.warp(block.timestamp + 1 days); - // Should work now + // // Should work now vm.prank(owner); faucet.withdraw(user1); assertEq(user1.balance, tokenAmount * 2);