Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StateChanges is missing from provider read SC #727

Open
pivilartisant opened this issue Jan 9, 2025 · 0 comments
Open

StateChanges is missing from provider read SC #727

pivilartisant opened this issue Jan 9, 2025 · 0 comments

Comments

@pivilartisant
Copy link
Collaborator

pivilartisant commented Jan 9, 2025

Read on provider & sc should have the following (more complete) return type ReadOnlyCallResult

Currently read returns ReadScData which is some times incomplete when making a read

Example:
here I want to access ledger changes after a "purge" call

async function handlePurge() {
    try {
      SC?.read("purge").then((res) => {
        console.log(res);
      });
    } catch (e) {
      console.error("Error while trying to read SC", e);
    }
  }

I get the ReadOnlyCallResult object as a response but it is not accessible due to the resbeing of type ReadSCData

@pivilartisant pivilartisant changed the title Add ReadOnlyCall on provider with ReadOnlyCallResult and return type Add ReadOnlyCall on provider with ReadOnlyCallResult as return type Jan 9, 2025
@pivilartisant pivilartisant changed the title Add ReadOnlyCall on provider with ReadOnlyCallResult as return type Change provider Read return type to ReadOnlyCallResult Jan 9, 2025
@pivilartisant pivilartisant changed the title Change provider Read return type to ReadOnlyCallResult Improve return for smartcontract read call Jan 9, 2025
@pivilartisant pivilartisant changed the title Improve return for smartcontract read call tateChanges is missing from provider read SC Jan 9, 2025
@pivilartisant pivilartisant changed the title tateChanges is missing from provider read SC StateChanges is missing from provider read SC Jan 9, 2025
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

No branches or pull requests

1 participant