Skip to content

Conversation

@FroVolod
Copy link
Collaborator

@FroVolod FroVolod commented Aug 7, 2025

Resolves #512

Copy link
Collaborator

@akorchyn akorchyn left a comment

Choose a reason for hiding this comment

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

@race-of-sloths score 3

account_view.storage_usage
.checked_sub(u64::try_from(contract_code_view.code.len())?)
.expect("Unexpected error")
if account_view.global_contract_account_id.is_none() & account_view.global_contract_hash.is_none() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we can somehow omit those view_code_response and fetch data only if necessary.
I see that it is provided as an argument, but can you take a look if it is possible to move this calculation here if it is not mandatory there.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done (519c98e)

@race-of-sloths
Copy link

race-of-sloths commented Aug 7, 2025

@FroVolod Thank you for your contribution! Your pull request is now a part of the Race of Sloths!
Do you want to apply for monthly streak? Get 8+ score for a single PR this month and receive boost for race-of-sloths!

Shows inviting banner with latest news.

Shows profile picture for the author of the PR

Current status: stale

This pull request was removed from the race, but you can include it again with @race-of-sloths include command

What is the Race of Sloths

Race of Sloths is a friendly competition where you can participate in challenges and compete with other open-source contributors within your normal workflow

For contributors:

  • Tag @race-of-sloths inside your pull requests
  • Wait for the maintainer to review and score your pull request
  • Check out your position in the Leaderboard
  • Keep weekly and monthly streaks to reach higher positions
  • Boast your contributions with a dynamic picture of your Profile

For maintainers:

  • Score pull requests that participate in the Race of Sloths and receive a reward
  • Engage contributors with fair scoring and fast responses so they keep their streaks
  • Promote the Race to the point where the Race starts promoting you
  • Grow the community of your contributors

Feel free to check our website for additional details!

Bot commands
  • For contributors
    • Include a PR: @race-of-sloths include to enter the Race with your PR
  • For maintainers:
    • Invite contributor @race-of-sloths invite to invite the contributor to participate in a race or include it, if it's already a runner.
    • Assign points: @race-of-sloths score [1/2/3/5/8/13] to award points based on your assessment.
    • Reject this PR: @race-of-sloths exclude to send this PR back to the drawing board.
    • Exclude repo: @race-of-sloths pause to stop bot activity in this repo until @race-of-sloths unpause command is called

@FroVolod FroVolod marked this pull request as draft August 7, 2025 11:24
@FroVolod FroVolod marked this pull request as ready for review August 8, 2025 10:20
@race-of-sloths
Copy link

❌ PR inactive

This PR has been inactive for two weeks. It's now marked as stale.

Tip

If you think it's a mistake, you can restart the bot with include command to proceed 🔄

@frol frol merged commit 56a8766 into main Aug 31, 2025
11 checks passed
@frol frol deleted the inspect-global-contract branch August 31, 2025 09:03
@github-project-automation github-project-automation bot moved this from NEW❗ to Shipped 🚀 in DevTools Aug 31, 2025
@frol frol mentioned this pull request Aug 31, 2025
frol added a commit that referenced this pull request Aug 31, 2025
## 🤖 New release

* `near-cli-rs`: 0.22.1 -> 0.22.2 (✓ API compatible changes)

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

##
[0.22.2](v0.22.1...v0.22.2)
- 2025-08-31

### Fixed

- Fixed the inspection command for the global contract on the account.
([#513](#513))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).
eth-wardenrt added a commit to eth-wardenrt/near-cli-rs that referenced this pull request Sep 28, 2025
## 🤖 New release

* `near-cli-rs`: 0.22.1 -> 0.22.2 (✓ API compatible changes)

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

##
[0.22.2](near/near-cli-rs@v0.22.1...v0.22.2)
- 2025-08-31

### Fixed

- Fixed the inspection command for the global contract on the account.
([#513](near/near-cli-rs#513))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Shipped 🚀

Development

Successfully merging this pull request may close these issues.

The CLI crashes on attempt to inspect an account's contract

5 participants