aboutsummaryrefslogtreecommitdiff
path: root/core/state_transition.go
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2020-07-29 12:01:05 -0400
committerDeterminant <[email protected]>2020-07-29 12:01:05 -0400
commit1f49826de2bb8bb4f5f99f69fd2beb039b1172d9 (patch)
tree4db4d3687f89f55c42898ba12e59e2236da03558 /core/state_transition.go
parent67ae6a33a4bfd74dad0a043f07f91647d34cff8d (diff)
clean upmulti-coin
Diffstat (limited to 'core/state_transition.go')
-rw-r--r--core/state_transition.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/core/state_transition.go b/core/state_transition.go
index 7a48597..de7488e 100644
--- a/core/state_transition.go
+++ b/core/state_transition.go
@@ -55,8 +55,6 @@ type StateTransition struct {
gasPrice *big.Int
initialGas uint64
value *big.Int
- coinID *common.Hash
- value2 *big.Int
data []byte
state vm.StateDB
evm *vm.EVM
@@ -71,8 +69,6 @@ type Message interface {
GasPrice() *big.Int
Gas() uint64
Value() *big.Int
- CoinID() *common.Hash
- Value2() *big.Int
Nonce() uint64
CheckNonce() bool
@@ -124,8 +120,6 @@ func NewStateTransition(evm *vm.EVM, msg Message, gp *GasPool) *StateTransition
msg: msg,
gasPrice: msg.GasPrice(),
value: msg.Value(),
- coinID: msg.CoinID(),
- value2: msg.Value2(),
data: msg.Data(),
state: evm.StateDB,
}
@@ -221,7 +215,7 @@ func (st *StateTransition) TransitionDb() (ret []byte, usedGas uint64, failed bo
} else {
// Increment the nonce for the next transaction
st.state.SetNonce(msg.From(), st.state.GetNonce(sender.Address())+1)
- ret, st.gas, vmerr = evm.CallExpert(sender, st.to(), st.data, st.gas, st.value, st.coinID, st.value2)
+ ret, st.gas, vmerr = evm.Call(sender, st.to(), st.data, st.gas, st.value)
}
if vmerr != nil {
log.Debug("VM returned with error", "err", vmerr)