Skip to content

Commit

Permalink
passing proposal L2 test
Browse files Browse the repository at this point in the history
  • Loading branch information
soloseng committed Nov 18, 2024
1 parent f0a36ec commit 98a3057
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions packages/protocol/test-sol/unit/governance/network/Proposal.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,25 @@
pragma solidity ^0.5.13;

import "celo-foundry/Test.sol";
import "@test-sol/utils/WhenL2.sol";

import "@celo-contracts/governance/Proposals.sol";
import "@celo-contracts/common/FixidityLib.sol";

contract ProposalTest_getSupportWithQuorumPadding is Test {
contract ProposalTest is Test {
using Proposals for Proposals.Proposal;
using FixidityLib for FixidityLib.Fraction;

Proposals.Proposal private proposal;
Proposals.Proposal internal proposal;

function setUp() public {
proposal.networkWeight = 100;
}
}

contract ProposalTest_L2 is WhenL2, ProposalTest {}

contract ProposalTest_getSupportWithQuorumPadding is ProposalTest {
function test_ShouldReturnSupportRatioWhenParticipationAboveCriticalBaseline() public {
proposal.votes.yes = 15;
proposal.votes.no = 10;
Expand Down Expand Up @@ -47,3 +52,8 @@ contract ProposalTest_getSupportWithQuorumPadding is Test {
assertEq(proposal.getSupportWithQuorumPadding(quorum).unwrap(), 0);
}
}

contract ProposalTest_getSupportWithQuorumPadding_L2 is
ProposalTest_L2,
ProposalTest_getSupportWithQuorumPadding
{}

0 comments on commit 98a3057

Please sign in to comment.