From 4f9e567e4bb4c8427c59c7d7c14044f5b55cd11c Mon Sep 17 00:00:00 2001 From: BkChoy Date: Mon, 25 Nov 2024 07:49:14 -0500 Subject: [PATCH] enable pp deployment without sdl pool --- contracts/core/priorityPool/PriorityPool.sol | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contracts/core/priorityPool/PriorityPool.sol b/contracts/core/priorityPool/PriorityPool.sol index 492d53f..2fac83e 100644 --- a/contracts/core/priorityPool/PriorityPool.sol +++ b/contracts/core/priorityPool/PriorityPool.sol @@ -491,7 +491,9 @@ contract PriorityPool is UUPSUpgradeable, OwnableUpgradeable, PausableUpgradeabl for (uint256 i = 0; i < reSDLBalances.length; ++i) { address account = accounts[i]; - reSDLBalances[i] = sdlPool.effectiveBalanceOf(account); + reSDLBalances[i] = address(sdlPool) == address(0) + ? 0 + : sdlPool.effectiveBalanceOf(account); queuedBalances[i] = accountQueuedTokens[account]; }