diff options
Diffstat (limited to 'core/vm')
-rw-r--r-- | core/vm/jit_test.go | 2 | ||||
-rw-r--r-- | core/vm/runtime/runtime.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/vm/jit_test.go b/core/vm/jit_test.go index f9c0e8fa2..6f7ba9250 100644 --- a/core/vm/jit_test.go +++ b/core/vm/jit_test.go @@ -174,7 +174,7 @@ func NewEnv(config *Config) *Env { } func (self *Env) ChainConfig() *params.ChainConfig { - return ¶ms.ChainConfig{new(big.Int), new(big.Int), true, new(big.Int), common.Hash{}, new(big.Int)} + return params.TestChainConfig } func (self *Env) Vm() Vm { return self.evm } func (self *Env) Origin() common.Address { return common.Address{} } diff --git a/core/vm/runtime/runtime.go b/core/vm/runtime/runtime.go index f2d86a324..c57747edc 100644 --- a/core/vm/runtime/runtime.go +++ b/core/vm/runtime/runtime.go @@ -57,7 +57,7 @@ type Config struct { // sets defaults on the config func setDefaults(cfg *Config) { if cfg.ChainConfig == nil { - cfg.ChainConfig = ¶ms.ChainConfig{new(big.Int), new(big.Int), false, new(big.Int), common.Hash{}, new(big.Int)} + cfg.ChainConfig = ¶ms.ChainConfig{big.NewInt(1), new(big.Int), new(big.Int), false, new(big.Int), common.Hash{}, new(big.Int), new(big.Int), new(big.Int)} } if cfg.Difficulty == nil { |