Skip to content

Commit

Permalink
fix: proposer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nijynot committed Jan 8, 2022
1 parent 801d163 commit ac14c9e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/test/Proposer.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pragma solidity ^0.8.0;

import "ds-test/test.sol";

import "../interfaces/IProposer.sol";
import "../libraries/Status.sol";
import "../Attest.sol";
import "../Proposer.sol";
Expand Down Expand Up @@ -153,7 +154,7 @@ contract ProposerTest is DSTest, Vm {

function testOpenWithThreshold() public {
uint256 tokenId = setUpEmptyProposal(address(this));
proposer.set("threshold", abi.encode(1e18));
proposer.set(IProposer.threshold.selector, abi.encode(1e18));
erc20.mint(address(this), 1e18);
erc20.delegate(address(this));

Expand All @@ -165,7 +166,7 @@ contract ProposerTest is DSTest, Vm {

function testOpenStaged() public {
uint256 tokenId = setUpEmptyProposal(address(this));
proposer.set("threshold", abi.encode(1e18));
proposer.set(IProposer.threshold.selector, abi.encode(1e18));
proposer.stage(tokenId);
erc20.mint(address(user0), 1e18);

Expand All @@ -188,7 +189,7 @@ contract ProposerTest is DSTest, Vm {

function testOpenInsufficientTokensRevert() public {
uint256 tokenId = setUpEmptyProposal(address(this));
proposer.set("threshold", abi.encode(1e18));
proposer.set(IProposer.threshold.selector, abi.encode(1e18));
proposer.stage(tokenId);
erc20.mint(address(user0), 1e18 - 1);

Expand Down

0 comments on commit ac14c9e

Please sign in to comment.