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

[pallet-revive] adjust fee dry-run calculation #6393

Merged
merged 33 commits into from
Nov 12, 2024
Merged

Conversation

pgherveou
Copy link
Contributor

@pgherveou pgherveou commented Nov 6, 2024

  • Fix bare_eth_transact so that it estimate more precisely the transaction fee
  • Add some context to the build.rs to make it easier to troubleshoot errors
  • Add TransactionBuilder for the RPC tests.
  • Improve error message, proxy rpc error from the node and handle reverted error message
  • Add logs in ReceiptInfo

@pgherveou
Copy link
Contributor Author

/cmd prdoc --audience runtime_dev --bump minor

@pgherveou pgherveou added R0-silent Changes should not be mentioned in any release notes T7-smart_contracts This PR/Issue is related to smart contracts. labels Nov 7, 2024
@pgherveou pgherveou marked this pull request as ready for review November 7, 2024 22:12
@@ -99,42 +99,67 @@ struct BlockCache<const N: usize> {
tx_hashes_by_block_and_index: HashMap<H256, HashMap<U256, H256>>,
}

fn unwrap_subxt_err(err: &subxt::Error) -> String {
/// Unwrap the original `jsonrpsee::core::client::Error::Call` error.
fn unwrap_call_err(err: &subxt::error::RpcError) -> Option<ErrorObjectOwned> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jsdw here is the downcast magic, fyi

@pgherveou pgherveou added this pull request to the merge queue Nov 12, 2024
Merged via the queue into master with commit 9f8656b Nov 12, 2024
193 of 197 checks passed
@pgherveou pgherveou deleted the pg/revive-fixes branch November 12, 2024 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes T7-smart_contracts This PR/Issue is related to smart contracts.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants