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

estimate storage cost in read only #544

Open
Thykof opened this issue Mar 21, 2024 · 0 comments
Open

estimate storage cost in read only #544

Thykof opened this issue Mar 21, 2024 · 0 comments

Comments

@Thykof
Copy link
Contributor

Thykof commented Mar 21, 2024

In the readonly call smart contract, we can see all the change applied to the ledger, based on that we can compute the storage cost of the operation sum all added byte (+4), and substract the remoced byte.

the function readSmartContract can return the result given by the node along side the storage cost of the operation.

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