Open JamesHinshelwood opened 1 month ago
That makes sense. Do you want to add it?
just curious, the msg.sender
and msg.value
are already in the Env.tx
? Don't hesitate to correct me if I'm misunderstood.
just curious, the
msg.sender
andmsg.value
are already in theEnv.tx
? Don't hesitate to correct me if I'm misunderstood.
What I understood is caller
and value
of a subcall.
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
andmsg.sender
too. Would there be any sympathy for adding these parameters to the precompile traits (Perhaps by passing&CallInputs
instead)?