diff --git a/chain/actors/builtin/miner/actor.go.template b/chain/actors/builtin/miner/actor.go.template index 29f23c17922..2b6415e9f28 100644 --- a/chain/actors/builtin/miner/actor.go.template +++ b/chain/actors/builtin/miner/actor.go.template @@ -378,7 +378,7 @@ func PledgePenaltyForContinuedFault( {{- end}} {{- end}} default: - return big.Zero(), xerrors.Errorf("unsupported network version: %d", v) + return big.Zero(), xerrors.Errorf("unsupported network version: %d", nwVer) } } @@ -401,6 +401,6 @@ func PledgePenaltyForTermination( {{- end}} {{- end}} default: - return big.Zero(), xerrors.Errorf("unsupported network version: %d", v) + return big.Zero(), xerrors.Errorf("unsupported network version: %d", nwVer) } } \ No newline at end of file diff --git a/chain/actors/builtin/miner/miner.go b/chain/actors/builtin/miner/miner.go index 1a9678175b8..7a9709ea0e6 100644 --- a/chain/actors/builtin/miner/miner.go +++ b/chain/actors/builtin/miner/miner.go @@ -457,7 +457,7 @@ func PledgePenaltyForContinuedFault( switch v { default: - return big.Zero(), xerrors.Errorf("unsupported network version: %d", v) + return big.Zero(), xerrors.Errorf("unsupported network version: %d", nwVer) } } @@ -476,6 +476,6 @@ func PledgePenaltyForTermination( case actorstypes.Version16: return minertypes16.PledgePenaltyForTermination(initialPledge, sectorAge, faultFee), nil default: - return big.Zero(), xerrors.Errorf("unsupported network version: %d", v) + return big.Zero(), xerrors.Errorf("unsupported network version: %d", nwVer) } }