Fixes value transfer (#430)

This commit is contained in:
Samer Falah 2018-07-05 13:59:33 -04:00 committed by fixanoid
parent 87d7c906e9
commit 01195280b4
1 changed files with 2 additions and 2 deletions

View File

@ -279,8 +279,8 @@ func (st *StateTransition) TransitionDb() (ret []byte, requiredGas, usedGas *big
} else {
to = st.to().Address()
}
//if input is empty for the smart contract call, return
if len(data) == 0 {
//if input is empty for a private smart contract call, return
if len(data) == 0 && isPrivate{
return nil, new(big.Int), new(big.Int), false, nil
}
ret, st.gas, vmerr = evm.Call(sender, to, data, st.gas, st.value)