Skip to content

Commit 2075714

Browse files
rube-deCopilot
andauthored
Update contracts/contracts/sapphire/CrossChainPaymaster.sol
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 6c9dde6 commit 2075714

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contracts/contracts/sapphire/CrossChainPaymaster.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,8 @@ contract CrossChainPaymaster is
430430
uint256 validFeedCount = 0;
431431
uint8 commonRoseDec = 0; // Store decimals from first valid feed
432432

433-
for (uint256 i = 0; i < _roseUsdFeeds.length(); i++) {
433+
uint256 roseUsdFeedCount = _roseUsdFeeds.length();
434+
for (uint256 i = 0; i < roseUsdFeedCount; i++) {
434435
address feedAddr = _roseUsdFeeds.at(i);
435436
AggregatorV3Interface roseFeed = AggregatorV3Interface(feedAddr);
436437

0 commit comments

Comments
 (0)