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

feat: add system contracts on the first run #372

Merged
merged 2 commits into from
Jan 21, 2025

Conversation

kiriyaga-txfusion
Copy link
Contributor

@kiriyaga-txfusion kiriyaga-txfusion commented Jan 15, 2025

What ❔

This PR addresses an issue where system contracts were not displayed as contracts in the UI until they were updated. The implemented solution ensures that system contracts are loaded and saved in the database immediately after work begins. This guarantees their proper display in the UI, providing a consistent and accurate reflection of the system's state.

Why ❔

System contracts are not displayed as contracts in the UI until they have been updated.

Checklist

This PR fixes: #358

  • [+] PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • [+] Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.

Copy link

github-actions bot commented Jan 15, 2025

API E2E Test Results

207 tests   207 ✅  20s ⏱️
 14 suites    0 💤
  1 files      0 ❌

Results for commit 89255da.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jan 15, 2025

Unit Test Results

    4 files    264 suites   12m 10s ⏱️
2 143 tests 2 142 ✅ 1 💤 0 ❌
2 357 runs  2 356 ✅ 1 💤 0 ❌

Results for commit 89255da.

♻️ This comment has been updated with latest results.

Copy link

Visit the preview URL for this PR:
https://staging-scan-v2--pr-372-6q2s8iza.web.app

@vasyl-ivanchuk vasyl-ivanchuk requested review from vasyl-ivanchuk and removed request for Romsters January 21, 2025 11:20
@vasyl-ivanchuk
Copy link
Collaborator

vasyl-ivanchuk commented Jan 21, 2025

@kiriyaga-txfusion I've applied a few improvements, please check the changes. Another thing is that we require all commits to be signed. Otherwise you cannot merge the PR. So, I squashed all commits into a single signed commit. Please, make sure to configure GitHub to sign commits.

@vasyl-ivanchuk vasyl-ivanchuk force-pushed the kiriyaga-txfusion-add-system-contracts branch from 0a67d4d to ebc4465 Compare January 21, 2025 13:59
@vasyl-ivanchuk vasyl-ivanchuk merged commit 5576811 into main Jan 21, 2025
23 checks passed
@vasyl-ivanchuk vasyl-ivanchuk deleted the kiriyaga-txfusion-add-system-contracts branch January 21, 2025 15:26
Copy link

🎉 This PR is included in version 2.60.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

const bytecode = await this.blockchainService.getCode(contract.address);
// some contract might not exist on the environment yet
if (bytecode !== "0x") {
await this.addressRepository.add({
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could cause a problem, see #378

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

Successfully merging this pull request may close these issues.

System contracts are not displayed as contracts in the UI.
3 participants