Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrap testing environment and port over Olympus token tests #4

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

bytes420
Copy link

I ported over the token tests from Olympus at commit d02a634c487ed and migrated hardhat.config.js to TypeScript in order to execute tests. This should serve as a decent template going forward.

Tests can be run with

npx hardhat test

This is my first PR so any feedback would be helpful and appreciated.

@0xAurelius
Copy link
Contributor

Thanks for opening this! We're finally getting around to reviewing community PRs on this repo, would you mind rebasing this PR with the latest changes on main and resolving any conflicts?

_trustedForwarder = newForwarder;
}

// Can't do this https://ethereum.stackexchange.com/a/79604
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The README file has been updated to document the workaround that was used to get this contract originally deployed.

https://github.com/KlimaDAO/klimadao-solidity#build

We either keep the workaround documented, or remove the workaround and this function.

KlimaToken__factory as OlympusERC20Token__factory,
// OlympusAuthority__factory
KlimaToken,
KlimaToken__factory,
} from '../../types';

describe("OlympusTest", () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leftover "Olympus"

chai_1.default.use(chai_as_promised_1.default);
var expect = chai_1.default.expect;
var types_1 = require("../../types");
describe("OlympusTest", function () {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a few more minor "Olympus" references, as well as the Ohm file name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants