Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Commit

Permalink
Rename Cw20TokenReserve -> ERC20TokenReserve
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNeshi committed Jul 19, 2023
1 parent e458b02 commit fa9e1e7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion contracts/core/accounts/message.sol
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ library AccountMessages {

enum DonationMatchEnum {
HaloTokenReserve,
Cw20TokenReserve
ERC20TokenReserve
}

struct DonationMatchData {
Expand Down
4 changes: 2 additions & 2 deletions test/core/accounts/AccountsDonationMatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ describe("AccountsDonationMatch", function () {
});

it("reverts if the passed reserveToken address is a zero address", async () => {
details.enumData = DonationMatchEnum.Cw20TokenReserve;
details.enumData = DonationMatchEnum.ERC20TokenReserve;
details.data.reserveToken = ethers.constants.AddressZero;

await expect(facet.setupDonationMatch(endowId, details)).to.be.revertedWith(
Expand Down Expand Up @@ -310,7 +310,7 @@ describe("AccountsDonationMatch", function () {
});

it("passes when setting up some custom reserve token", async () => {
details.enumData = DonationMatchEnum.Cw20TokenReserve;
details.enumData = DonationMatchEnum.ERC20TokenReserve;
details.data.reserveToken = genWallet().address;

await expect(facet.setupDonationMatch(endowId, details)).to.emit(
Expand Down
2 changes: 1 addition & 1 deletion test/utils/helpers/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ export enum DelegateAction {

export enum DonationMatchEnum {
HaloTokenReserve,
Cw20TokenReserve,
ERC20TokenReserve,
}

0 comments on commit fa9e1e7

Please sign in to comment.