resolve review note
This commit is contained in:
parent
49c677fb6e
commit
b3a0ec9155
@ -231,7 +231,6 @@ func (vmctx *VMContext) GetBalance(a address.Address) (types.BigInt, aerrors.Act
|
|||||||
default:
|
default:
|
||||||
return types.EmptyInt, aerrors.Escalate(err, "failed to look up actor balance")
|
return types.EmptyInt, aerrors.Escalate(err, "failed to look up actor balance")
|
||||||
case hamt.ErrNotFound:
|
case hamt.ErrNotFound:
|
||||||
// REVIEW: should we just say 'account doesnt exist' == '0 balance'?
|
|
||||||
return types.NewInt(0), nil
|
return types.NewInt(0), nil
|
||||||
case nil:
|
case nil:
|
||||||
return act.Balance, nil
|
return act.Balance, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user