mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-28 00:28:02 +00:00
implement address and msg.sender
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
This commit is contained in:
@@ -1134,8 +1134,12 @@ where
|
||||
.map(Some)
|
||||
}
|
||||
|
||||
InstructionName::ADDRESS => todo!(),
|
||||
InstructionName::CALLER => todo!(),
|
||||
InstructionName::ADDRESS => {
|
||||
revive_llvm_context::polkavm_evm_contract_context::address(context).map(Some)
|
||||
}
|
||||
InstructionName::CALLER => {
|
||||
revive_llvm_context::polkavm_evm_contract_context::caller(context).map(Some)
|
||||
}
|
||||
|
||||
InstructionName::CALLVALUE => {
|
||||
revive_llvm_context::polkavm_evm_ether_gas::value(context).map(Some)
|
||||
|
||||
Reference in New Issue
Block a user