|
|
@ -217,8 +217,8 @@ func (self *VMEnv) AddLog(log *vm.Log) { |
|
|
|
func (self *VMEnv) CanTransfer(from common.Address, balance *big.Int) bool { |
|
|
|
func (self *VMEnv) CanTransfer(from common.Address, balance *big.Int) bool { |
|
|
|
return self.state.GetBalance(from).Cmp(balance) >= 0 |
|
|
|
return self.state.GetBalance(from).Cmp(balance) >= 0 |
|
|
|
} |
|
|
|
} |
|
|
|
func (self *VMEnv) Transfer(from, to vm.Account, amount *big.Int) error { |
|
|
|
func (self *VMEnv) Transfer(from, to vm.Account, amount *big.Int) { |
|
|
|
return core.Transfer(from, to, amount) |
|
|
|
core.Transfer(from, to, amount) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (self *VMEnv) Call(caller vm.ContractRef, addr common.Address, data []byte, gas, price, value *big.Int) ([]byte, error) { |
|
|
|
func (self *VMEnv) Call(caller vm.ContractRef, addr common.Address, data []byte, gas, price, value *big.Int) ([]byte, error) { |
|
|
|