示例#1
0
文件: util.go 项目: codeaudit/shift
func (self *Env) CanTransfer(from vm.Account, balance *big.Int) bool {
	if self.skipTransfer {
		if self.initial {
			self.initial = false
			return true
		}
	}

	return from.Balance().Cmp(balance) >= 0
}
示例#2
0
文件: main.go 项目: codeaudit/shift
func (self *VMEnv) CanTransfer(from vm.Account, balance *big.Int) bool {
	return from.Balance().Cmp(balance) >= 0
}