Skip to content

Commit

Permalink
use onchain proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
wildmolasses committed Sep 27, 2024
1 parent 24147a8 commit 30e16df
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions test/helpers/ProposalTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,17 @@ abstract contract ProposalTest is RadworksGovernorTest {
function setUp() public virtual override {
RadworksGovernorTest.setUp();
initialProposalCount = governorAlpha.proposalCount();
TestableProposeScript _proposeScript = new TestableProposeScript();
upgradeProposalId = _proposeScript.run(governorBravo);
if (_useDeployedGovernorBravo()) {
// Use the actual live proposal data
upgradeProposalId = 25;
// Since the proposal was already submitted, the count before its submission is one less
initialProposalCount = governorAlpha.proposalCount() - 1;
} else {
initialProposalCount = governorAlpha.proposalCount();

TestableProposeScript _proposeScript = new TestableProposeScript();
upgradeProposalId = _proposeScript.run(governorBravo);
}
}

//--------------- HELPERS ---------------//
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/RadworksGovernorTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ abstract contract RadworksGovernorTest is Test, DeployInput, Constants {
function setUp() public virtual {
// The latest block when this test was written. If you update the fork block
// make sure to also update the top 6 delegates below.
uint256 _forkBlock = 20_341_999;
uint256 _forkBlock = 20_826_606;

vm.createSelectFork(vm.rpcUrl("mainnet"), _forkBlock);

Expand Down

0 comments on commit 30e16df

Please sign in to comment.