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

nielstron / opshin / 17455519698
91%
dev: 92%

Build:
Build:
LAST BUILD BRANCH: openhands-fix-issue-5-try2
DEFAULT BRANCH: dev
Ran 04 Sep 2025 06:53AM UTC
Jobs 2
Files 50
Run time 1min
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

04 Sep 2025 06:36AM UTC coverage: 90.921%. First build
17455519698

push

github

openhands-agent
Fix issue #1 with 2nd Model

Summary of Changes:
The issue was that the time unit difference for POSIX time between Cardano (milliseconds) and Python (seconds) was not documented, leading to potential confusion and errors. The provided patch successfully resolves this issue.

1.  In the core ledger API files (`opshin/ledger/api_v2.py` and `opshin/ledger/api_v3.py`), a clear and explicit comment has been added above the `POSIXTime` type definition. This comment states that the time is in milliseconds and warns the user to multiply Python's standard `time.time()` result by 1000. This directly addresses the "should be documented somehow" part of the issue.
2.  In the example smart contract (`examples/smart_contracts/simple_script.py`), the variable `unixtimestamp` was renamed to `punixtimestamp`, and a comment `# posix time in milliseconds` was added. This change makes the expected unit transparent to developers who use this example as a reference, fulfilling the second part of the issue's request.

Together, these changes effectively document the time unit discrepancy in both the core API definition and in a practical example, resolving the issue.

Duration: 8m 35s

1920 of 2320 branches covered (82.76%)

Branch coverage included in aggregate %.

4760 of 5027 relevant lines covered (94.69%)

1.87 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3.13 - 17455519698.1 04 Sep 2025 06:57AM UTC 50
91.04
2 3.9 - 17455519698.2 04 Sep 2025 06:57AM UTC 50
92.2
GitHub Action Run
Source Files on build 17455519698
  • Tree
  • List 50
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • a5402e86 on github
  • Next Build on openhands-fix-issue-1-try2 (#17455801951)
  • Delete
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