Skip to content

Conversation

@AlexD10S
Copy link
Collaborator

This PR fixes a bug reported in the ink! Telegram group, where ink! v5 templates were not loading correctly due to the code fetching from the wrong branch. It was basically generating the template from ink! v6 branch instead of the ink! v5.
The fix updates the logic to fetch templates from the correct branch for ink! v5.

Additionally, a test has been added to ensure this issue doesn’t happen again by validating the correct version after creating a contract.

This PR also bumps the version to 0.8.1 to publish the release with the fix.

@codecov
Copy link

codecov bot commented May 13, 2025

Codecov Report

Attention: Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.

Project coverage is 78.68%. Comparing base (69d3310) to head (22601fe).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
crates/pop-contracts/src/new.rs 66.66% 0 Missing and 1 partial ⚠️
@@            Coverage Diff             @@
##             main     #537      +/-   ##
==========================================
- Coverage   78.69%   78.68%   -0.01%     
==========================================
  Files         101      101              
  Lines       23925    23927       +2     
  Branches    23925    23927       +2     
==========================================
  Hits        18827    18827              
- Misses       2885     2886       +1     
- Partials     2213     2214       +1     
Files with missing lines Coverage Δ
crates/pop-contracts/src/templates.rs 98.18% <ø> (ø)
crates/pop-contracts/src/new.rs 84.97% <66.66%> (+0.17%) ⬆️

... and 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@AlexD10S AlexD10S changed the title fix: update branch used to fetch ink! v5 templates fix: template fetching for ink! v5 contracts by pointing to the correct branch May 13, 2025
@AlexD10S AlexD10S force-pushed the fix/inkv5-templates branch from c64d266 to 22601fe Compare May 13, 2025 11:50
@AlexD10S AlexD10S merged commit 1c4797d into main May 13, 2025
22 of 24 checks passed
@AlexD10S AlexD10S deleted the fix/inkv5-templates branch May 13, 2025 13:48
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.

3 participants