From c54cf77928b32f11ab85a405f435a2f33996eb57 Mon Sep 17 00:00:00 2001 From: gitglorythegreat Date: Thu, 26 Dec 2024 15:21:30 +0800 Subject: [PATCH] core/vm/runtime: fix error messages in test --- core/vm/runtime/runtime_test.go | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/core/vm/runtime/runtime_test.go b/core/vm/runtime/runtime_test.go index 6074e9a096..195a2435f7 100644 --- a/core/vm/runtime/runtime_test.go +++ b/core/vm/runtime/runtime_test.go @@ -47,24 +47,32 @@ func TestDefaults(t *testing.T) { cfg := new(Config) setDefaults(cfg) + if cfg.ChainConfig == nil { + t.Error("expected chainConfig to be non nil") + } if cfg.Difficulty == nil { t.Error("expected difficulty to be non nil") } - if cfg.GasLimit == 0 { t.Error("didn't expect gaslimit to be zero") } if cfg.GasPrice == nil { - t.Error("expected time to be non nil") + t.Error("expected gasPrice to be non nil") } if cfg.Value == nil { - t.Error("expected time to be non nil") + t.Error("expected value to be non nil") } if cfg.GetHashFn == nil { - t.Error("expected time to be non nil") + t.Error("expected getHashFn to be non nil") } if cfg.BlockNumber == nil { - t.Error("expected block number to be non nil") + t.Error("expected blockNumber to be non nil") + } + if cfg.BaseFee == nil { + t.Error("expected baseFee to be non nil") + } + if cfg.BlobBaseFee == nil { + t.Error("expected blobBaseFee to be non nil") } }