Skip to content

Conversation

@DocteurPing
Copy link
Contributor

No description provided.

@DocteurPing DocteurPing requested a review from Copilot June 27, 2025 07:46
@peaq-coolify
Copy link

peaq-coolify bot commented Jun 27, 2025

The preview deployment is ready. 🟢

Open Preview | Open Build Logs

Last updated at: 2025-09-26 03:52:29 CET

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces an EstimateGasAdapter implementation for precompile handling in the node RPC and supplements it with conversion tests for gas and weight in the runtime.

  • Added comprehensive tests in runtime/peaq/src/test.rs for gas-to-weight and weight-to-gas conversions.
  • Introduced a new PeaqEGA implementation of fc_rpc::EstimateGasAdapter in node/src/rpc.rs to override precompile calls.
  • Minor reorganization in runtime/peaq/src/lib.rs to include the tests module.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
runtime/peaq/src/test.rs New tests to ensure proper conversion between gas and weight.
runtime/peaq/src/lib.rs Updated to include the tests module.
node/src/rpc.rs New PeaqEGA adapter implementation for precompile gas estimation.

@DocteurPing DocteurPing marked this pull request as ready for review June 27, 2025 13:10
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.

2 participants