diff --git a/miner/block.go b/miner/block.go index 4bf25a548c..9ce32063f4 100644 --- a/miner/block.go +++ b/miner/block.go @@ -384,7 +384,10 @@ func createConversionFunctions(sysCtx *core.SysContractCallCtx, chain *core.Bloc } toCeloFn := func(amount *big.Int, feeCurrency *common.Address) *big.Int { curr, _ := currencyManager.GetCurrency(feeCurrency) - return curr.ToCELO(amount) + if curr != nil { + return curr.ToCELO(amount) + } + return nil } return baseFeeFn, toCeloFn