Skip to content

RPC docs incorrectly specify getLedgerEntries as a backup method #442

Closed

Description

@janewang

Current docs:

Allows you to directly inspect the current state of a contract, a contract's code, or any other ledger entry. This is a backup way to access your contract data which may not be available via events or simulateTransaction.

It's actually primary and very useful method to get ledger entry and contract states.

Discord link: https://discord.com/channels/897514728459468821/1209582245824823337/1210262408376098827

Activity

  1. added
    bug
    on Feb 27, 2024
  2. ElliotFriend commented on Feb 27, 2024

    @ElliotFriend
    Contributor

    Yeah, I've had a similar thought. I think when this was written the "primary" method in mind was that your contract would expose some kind of function (balance() for instance) that would be used to read the contents of a ledger entry.

    This language could certainly use some cleaning up!

  3. added a commit that references this issue on Apr 16, 2024
    eb18688
  4. moved this from To Do to Done in Dev Docson Apr 16, 2024
  5. added a commit that references this issue on Apr 16, 2024
    dd0d309
  6. self-assigned this
    on Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

  • Status
    No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions