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

Replace RPC estimateGas to estimateResources #804

Closed
xlc opened this issue Mar 14, 2021 · 0 comments · Fixed by #815
Closed

Replace RPC estimateGas to estimateResources #804

xlc opened this issue Mar 14, 2021 · 0 comments · Fixed by #815
Assignees

Comments

@xlc
Copy link
Member

xlc commented Mar 14, 2021

Make it return storage usage and adjusted weight fee from payment_queryFeeDetails

Return type will be {gas: used_gas, storage: used_storage, weight_fee: adjusted_weight_fee}

Used storage count be negative which means refund, in that case make it zero.

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 a pull request may close this issue.

2 participants