Make CALLCODE to trace value to be the code address (#9881)

This commit is contained in:
Wei Tang
2018-11-26 19:21:55 +08:00
committed by Afri Schoedon
parent 0d593199d0
commit 18a2e6265d
2 changed files with 3 additions and 3 deletions

View File

@@ -71,7 +71,7 @@ pub struct Call {
impl From<ActionParams> for Call {
fn from(p: ActionParams) -> Self {
match p.call_type {
CallType::DelegateCall => Call {
CallType::DelegateCall | CallType::CallCode => Call {
from: p.address,
to: p.code_address,
value: p.value.value(),