revm icon indicating copy to clipboard operation
revm copied to clipboard

Accessing call value and sender in precompiles

Open JamesHinshelwood opened this issue 6 months ago • 4 comments

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)?

JamesHinshelwood avatar Aug 05 '24 17:08 JamesHinshelwood