Skip to content

Commit

Permalink
Allow fee safety checks to pass when gas estimating
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenGround0 committed Jan 24, 2025
1 parent 51ba429 commit 86b191c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Fees.sol
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ library PDPFees {
int32 filUsdPriceExpo,
uint256 rawSize,
uint256 nProofEpochs
) internal pure returns (uint256) {
require(estimatedGasFee > 0, "failed to validate: estimated gas fee must be greater than 0");
) internal view returns (uint256) {
require(estimatedGasFee > 0 || block.basefee == 0, "failed to validate: estimated gas fee must be greater than 0");
require(filUsdPrice > 0, "failed to validate: AttoFIL price must be greater than 0");
require(rawSize > 0, "failed to validate: raw size must be greater than 0");

Expand Down

0 comments on commit 86b191c

Please sign in to comment.