review fixes

This commit is contained in:
Geoff Stuart
2022-10-07 00:25:08 -04:00
parent c6eb7b69e6
commit a629bcab8d
4 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ func checkStateInvariants(ctx context.Context, oldStateRoot cid.Cid, newStateRoo
if !ok {
return xerrors.Errorf("datacap for address: %s not found in datacap state", addr)
}
if dcap != oldDcap {
if !dcap.Equals(oldDcap) {
return xerrors.Errorf("datacap for address: %s do not match. verifreg: %d, datacap: %d", addr, oldDcap, dcap)
}
}