• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

neo-project / neo / 14214448420
79%

Build:
DEFAULT BRANCH: master
Ran 02 Apr 2025 08:00AM UTC
Jobs 1
Files 414
Run time 91min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Apr 2025 07:56AM UTC coverage: 78.519% (-0.01%) from 78.53%
14214448420

push

github

web-flow
Native: swap Policy's `[get/set]AttributeFee` implementations (#3859)

* Native: swap Policy's `[get/set]AttributeFee` implementations

Problem:

`[get/set]AttributeFee` method of native Policy contract has two
implementations: pre-Echidna and post-Echidna (ref. #3175). The problem
is that two implementaitons of this method have reversed
ActiveIn/ActiveTill meaning.

Solution:

GetAttributeFeeV0 implementaiton of Policy's `getAttributeFee` method
should be enabled *till* Echidna, whereas GetAttributeFee should be
enabled *starting from* Echidna. The same is relevant for
SetAttributeFeeV0 and SetAttributeFeeV1 implementations.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>

* Native: rename Policy's GetAttributeFee to GetAttributeFeeV1

This renaming allows to avoid bugs and collisions with
ActiveIn/ActiveTill. Also, this renaming follows the setters style (for
setters we have `SetAttributeFeeV0` and `SetAttributeFeeV1`.

No functional changes, just a refactoring. Contract manifest is not affected.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>

---------

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
Co-authored-by: Shargon <shargon@gmail.com>
Co-authored-by: NGD Admin <154295625+NGDAdmin@users.noreply.github.com>

6115 of 8856 branches covered (69.05%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 2 files covered. (100.0%)

6 existing lines in 1 file now uncovered.

22320 of 27358 relevant lines covered (81.58%)

125507.5 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
6
87.77
-2.88% src/Neo/SmartContract/Native/PolicyContract.cs
Jobs
ID Job ID Ran Files Coverage
1 14214448420.1 02 Apr 2025 08:00AM UTC 2698
25.22
GitHub Action Run
Source Files on build 14214448420
  • Tree
  • List 414
  • Changed 322
  • Source Changed 3
  • Coverage Changed 322
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #14214448420
  • 82c58597 on github
  • Prev Build on master (#14212728254)
  • Next Build on master (#14237819467)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc