Skip to content

Commit

Permalink
fixing linters
Browse files Browse the repository at this point in the history
  • Loading branch information
laudiacay committed Nov 28, 2021
1 parent b1c4090 commit 187a392
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions chain/vm/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -874,10 +874,7 @@ func (vm *VM) transfer(from, to address.Address, amt types.BigInt, networkVersio
var fromID, toID address.Address
var err error
// switching the order around so that transactions for more than the balance sent to self fail
fmt.Printf("network version! %s\n", networkVersion)
if networkVersion >= network.Version15 {
fmt.Println("network version high")

if amt.LessThan(types.NewInt(0)) {
return aerrors.Newf(exitcode.SysErrForbidden, "attempted to transfer negative value: %s", amt)
}
Expand Down Expand Up @@ -911,7 +908,6 @@ func (vm *VM) transfer(from, to address.Address, amt types.BigInt, networkVersio
return nil
}
} else {
fmt.Println("network version low")
if from == to {
return nil
}
Expand Down

0 comments on commit 187a392

Please sign in to comment.