revm
revm copied to clipboard
Accessing call value and sender in precompiles
Currently only the call data is passed to precompiles: https://github.com/bluealloy/revm/blob/4d0feec0b5b850d9a1ce651d7c1655d829f48097/crates/revm/src/context/context_precompiles.rs#L212
We're working on some custom precompiles that need to know the msg.value
and msg.sender
too. Would there be any sympathy for adding these parameters to the precompile traits (Perhaps by passing &CallInputs
instead)?