Removing value from delegatecall function
This commit is contained in:
@@ -68,7 +68,6 @@ pub trait Ext {
|
||||
/// and true if subcall was successfull.
|
||||
fn delegatecall(&mut self,
|
||||
gas: &U256,
|
||||
value: &U256,
|
||||
data: &[u8],
|
||||
code_address: &Address,
|
||||
output: &mut [u8]) -> MessageCallResult;
|
||||
|
||||
@@ -569,8 +569,6 @@ impl Interpreter {
|
||||
let code_address = stack.pop_back();
|
||||
let code_address = u256_to_address(&code_address);
|
||||
|
||||
let value = params.value;
|
||||
|
||||
let in_off = stack.pop_back();
|
||||
let in_size = stack.pop_back();
|
||||
let out_off = stack.pop_back();
|
||||
@@ -587,7 +585,7 @@ impl Interpreter {
|
||||
// and we don't want to copy
|
||||
let input = unsafe { ::std::mem::transmute(mem.read_slice(in_off, in_size)) };
|
||||
let output = mem.writeable_slice(out_off, out_size);
|
||||
ext.delegatecall(&call_gas, &value, input, &code_address, output)
|
||||
ext.delegatecall(&call_gas, input, &code_address, output)
|
||||
};
|
||||
|
||||
return match call_result {
|
||||
|
||||
@@ -71,7 +71,6 @@ impl Ext for FakeExt {
|
||||
|
||||
fn delegatecall(&mut self,
|
||||
_gas: &U256,
|
||||
_value: &U256,
|
||||
_data: &[u8],
|
||||
_address: &Address,
|
||||
_output: &mut [u8]) -> MessageCallResult {
|
||||
|
||||
Reference in New Issue
Block a user