Skip to content

Commit

Permalink
fix: use default guard for PingPongApp
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiTimesChi committed May 9, 2024
1 parent 57de53e commit 970f488
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pragma solidity 0.8.20;

import {ICAppV1} from "../ICAppV1.sol";

import {APP_CONFIG_GUARD_DEFAULT} from "../../libs/AppConfig.sol";
import {InterchainTxDescriptor} from "../../libs/InterchainTransaction.sol";
import {OptionsV1} from "../../libs/Options.sol";

Expand Down Expand Up @@ -88,4 +89,11 @@ contract PingPongApp is ICAppV1 {
gasLimit = gasLimit_;
emit GasLimitSet(gasLimit_);
}

/// @dev Returns the guard flag and address in the app config.
/// By default, the ICApp does not opt in for any guard, but it can be overridden in the derived contracts.
/// PingPong app opts in for the default guard.
function _getGuardConfig() internal pure override returns (uint8 guardFlag, address guard) {
return (APP_CONFIG_GUARD_DEFAULT, address(0));
}
}

0 comments on commit 970f488

Please sign in to comment.