git-consensus / contracts

Converts the informal ownership structure of an open-source git project to a formal DAO, with token distribution mechanisms for contributors.
GNU General Public License v3.0
13 stars 0 forks source link

🧪 Dynamically generate repository testdata from MNEMONIC #41

Closed mattstam closed 2 years ago

mattstam commented 2 years ago

Currently, we use hardcoded addresses in https://github.com/git-consensus/example/commits/master for integration test data. These were originally created from a sample MNEMONIC with ethers.getSigners() first index 1, 2, 3, and 4 addresses.

This breaks whenever a different MNEMONIC is used, and it is impractical to maintain a repo-wide MNEMONIC.

We should dynamically create new testdata from the commit/tag messages with the addresses that are generated from the available MNEMONIC.