Skip to content

[Forge test] [Cheatcode support] Implement txGasPrice #373

@filip-parity

Description

@filip-parity

At the moment txGasPrice cheatcode is not handled in PVM mode. When tests use vm.txGasPrice() while running in pallet-revive execution mode, the cheatcode falls back to the default EVM handler.

The expected behavior when calling vm.txGasPrice(new Price) is:~

  • The transaction gas price should be set in the EVM execution context
  • The cheatcode should work correctly in both EVM and PVM execution modes
  • Subsequent calls to tx.gasprice in Solidity should return the updated value

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions