When we have an Ink! smart contract code calling a chain extension, how do we receive this information from within the chain extension:
- The calling smart contract address/ID
- The original caller of the smart contract (or is this possible?)
- The equivalent EVM
msg.value
in the smart contract, if there is one?
If there is any tutorial/example that covers the above questions, it will be great just to paste the link out as well.
Thanks.
#[ink::chain_extension]
and#[ink(payable)]
as mentioned in the doc