fixed suicide refund address

This commit is contained in:
debris
2016-01-13 16:16:21 +01:00
parent 87eb66183c
commit d7adf95189
6 changed files with 28 additions and 10 deletions

View File

@@ -127,6 +127,12 @@ impl ContextHandle {
unsafe { std::slice::from_raw_parts(self.data_handle.call_data, self.data_handle.call_data_size as usize) }
}
/// Returns address to which funds should be transfered after suicide.
pub fn suicide_refund_address(&self) -> JitI256 {
// evmjit reuses data_handle address field to store suicide address
self.data_handle.address
}
/// Returns gas left.
pub fn gas_left(&self) -> u64 {
self.data_handle.gas as u64