diff --git a/vm/src/execute.rs b/vm/src/execute.rs index 0ea09ee9f1..e28dce601c 100644 --- a/vm/src/execute.rs +++ b/vm/src/execute.rs @@ -5,7 +5,7 @@ // Copyright (c) DUSK NETWORK. All rights reserved. use blake2b_simd::Params; -use dusk_core::abi::{ContractError, ContractId, CONTRACT_ID_BYTES}; +use dusk_core::abi::{ContractError, ContractId, Metadata, CONTRACT_ID_BYTES}; use dusk_core::transfer::{ data::ContractBytecode, Transaction, TRANSFER_CONTRACT, }; @@ -73,6 +73,9 @@ pub fn execute( // with gas limit smaller than deploy charge. deploy_check(tx, gas_per_deploy_byte, min_deploy_gas_price)?; + let _ = session + .set_meta(Metadata::MOONLIGHT_SENDER, tx.moonlight_sender().copied()); + // Spend the inputs and execute the call. If this errors the transaction is // unspendable. let mut receipt = session.call::<_, Result, ContractError>>(