implement address and msg.sender

Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
This commit is contained in:
Cyrill Leutwiler
2024-05-08 16:10:48 +02:00
parent ea63991617
commit 864e40901f
6 changed files with 58 additions and 10 deletions
+2 -2
View File
@@ -125,8 +125,8 @@ pub struct PreparedEvm {
pub fn prepare(code: Vec<u8>, data: Vec<u8>) -> PreparedEvm {
let state = RuntimeState {
context: Context {
address: H160::default(),
caller: H160::default(),
address: H160::from_slice(&[1u8; 20]),
caller: H160::from_slice(&[2u8; 20]),
apparent_value: U256::default(),
},
transaction_context: TransactionContext {