8000 Load contracts from default directories by mitchelli · Pull Request #4322 · aeternity/aeternity · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Load contracts from default directories #4322

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

Merged

Conversation

mitchelli
Copy link
Contributor

Fixes #4320

This PR is supported by Æternity Foundation

@mitchelli mitchelli self-assigned this Apr 5, 2024
@mitchelli mitchelli linked an issue Apr 5, 2024 that may be closed by this pull request
hanssv
hanssv previously approved these changes Apr 8, 2024
@@ -344,7 +348,15 @@ extra_accounts_json_file() ->
"extra_accounts_test.json".

contracts_json_file() ->
Copy link
Member

Choose a reason for hiding this comment

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

Isn't this just a subset of the function below? I can't remember why we wan't the TEST one?

Copy link
Member

Choose a reason for hiding this comment

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

This filename is a legacy one ... back then one could only set accounts (and later contracts) via this file. The suffix "_test" I believe comes from the original usage for tests only, but at some point all "custom" network ID's has been using this.

Copy link
Member

Choose a reason for hiding this comment

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

Ah, I see what your comment is about now .. nvm

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've moved the functions out of test and made a generic function for creating the file name.

@mitchelli mitchelli merged commit de34e33 into master Apr 8, 2024
@mitchelli mitchelli deleted the 4320-breaking-change-in-protocol-files-configuration branch April 8, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Breaking change in protocol files configuration
4 participants
0