Skip to content

Commit

Permalink
Add notice that tryCaller is for tests only
Browse files Browse the repository at this point in the history
  • Loading branch information
ericglau committed Oct 26, 2023
1 parent e0a92dc commit ad90687
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Upgrades.sol
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ library Upgrades {
}

/**
* @notice For tests only.
*
* @dev Upgrades a proxy to a new implementation contract. Only supported for UUPS or transparent proxies.
*
* Requires that either the `referenceContract` option is set, or the new implementation contract has a `@custom:oz-upgrades-from <reference>` annotation.
Expand All @@ -182,6 +184,8 @@ library Upgrades {
}

/**
* @notice For tests only.
*
* @dev Upgrades a proxy to a new implementation contract. Only supported for UUPS or transparent proxies.
*
* Requires that either the `referenceContract` option is set, or the new implementation contract has a `@custom:oz-upgrades-from <reference>` annotation.
Expand Down Expand Up @@ -261,6 +265,8 @@ library Upgrades {
}

/**
* @notice For tests only.
*
* @dev Upgrades a beacon to a new implementation contract.
*
* Requires that either the `referenceContract` option is set, or the new implementation contract has a `@custom:oz-upgrades-from <reference>` annotation.
Expand All @@ -283,6 +289,8 @@ library Upgrades {
}

/**
* @notice For tests only.
*
* @dev Upgrades a beacon to a new implementation contract.
*
* Requires that either the `referenceContract` option is set, or the new implementation contract has a `@custom:oz-upgrades-from <reference>` annotation.
Expand Down Expand Up @@ -401,6 +409,7 @@ library Upgrades {
}

/**
* @notice For tests only.
* @dev Runs a function as a prank, or just runs the function normally if the prank could not be started.
*/
modifier tryPrank(address deployer) {
Expand Down

0 comments on commit ad90687

Please sign in to comment.