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

Add support for runtime calls at other blocks than the most recent. #346

Merged
merged 1 commit into from Jun 21, 2023

Conversation

DamianStraszak
Copy link
Contributor

It's often useful to read contracts at old blocks. For this it's necessary to be able to make runtime calls at old blocks. The appropriate RPC call in substrate supports this option -- this PR is adding the support here.

I'm sorry if I missed something, like bumping version, running linter or things like that, but I wasn't sure how to do these things.

@arjanz
Copy link
Member

arjanz commented Jun 21, 2023

Thanks for the PR, this is a great addition. Looks good to me, I'll merge this and schedule for next release.

There are some other contract interface changes upcoming, to keep it up to date with latest Substrate contract pallet changes (like inclusion of events in the ContractExecResult and wrapping of the read() result in a Result<Ok, Err> type, which is currently live on Rococo Contracts parachain).

@arjanz arjanz merged commit 298c35c into polkascan:master Jun 21, 2023
1 check passed
@arjanz
Copy link
Member

arjanz commented Jun 22, 2023

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

Successfully merging this pull request may close these issues.

None yet

2 participants