Skip to content

Commit

Permalink
remove from ccip add to functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofel committed Aug 14, 2024
1 parent 279fdda commit 67f9879
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 0 additions & 12 deletions contracts/src/v0.8/ccip/AggregateRateLimiter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,6 @@ contract AggregateRateLimiter is OwnerIsCreator {
return pricePerToken._calcUSDValueFromTokenAmount(tokenAmount.amount);
}

fallback() external {
// copied directly from OZ's Proxy contract
assembly {
// Copy msg.data. We take full control of memory in this inline assembly
// block because it will not return to Solidity code. We overwrite the
// Solidity scratch pad at memory position 0.
calldatacopy(0, 0, calldatasize())

return(0, returndatasize())
}
}

/// @notice Gets the token bucket with its values for the block it was requested at.
/// @return The token bucket.
function currentRateLimiterState() external view returns (RateLimiter.TokenBucket memory) {
Expand Down
12 changes: 12 additions & 0 deletions contracts/src/v0.8/functions/v1_3_0/FunctionsBilling.sol
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,18 @@ abstract contract FunctionsBilling is Routable, IFunctionsBilling {
return s_config;
}

fallback() external {
// copied directly from OZ's Proxy contract
assembly {
// Copy msg.data. We take full control of memory in this inline assembly
// block because it will not return to Solidity code. We overwrite the
// Solidity scratch pad at memory position 0.
calldatacopy(0, 0, calldatasize())

return(0, returndatasize())
}
}

/// @notice Sets the Chainlink Coordinator's billing configuration
/// @param config - See the contents of the FunctionsBillingConfig struct in IFunctionsBilling.sol for more information
function updateConfig(FunctionsBillingConfig memory config) public {
Expand Down

0 comments on commit 67f9879

Please sign in to comment.