aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/abi/bind
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2016-03-31 23:43:41 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2016-04-01 07:01:10 +0800
commit9055c16efad80d0c69992e7992083f967733aa9c (patch)
tree41de92819a7aa8182779e964cec75c0e54d8801f /accounts/abi/bind
parentf0cbebb19f3137ee3ba0e66dadd1b5b9dbf98b1c (diff)
downloadgo-tangerine-9055c16efad80d0c69992e7992083f967733aa9c.tar
go-tangerine-9055c16efad80d0c69992e7992083f967733aa9c.tar.gz
go-tangerine-9055c16efad80d0c69992e7992083f967733aa9c.tar.bz2
go-tangerine-9055c16efad80d0c69992e7992083f967733aa9c.tar.lz
go-tangerine-9055c16efad80d0c69992e7992083f967733aa9c.tar.xz
go-tangerine-9055c16efad80d0c69992e7992083f967733aa9c.tar.zst
go-tangerine-9055c16efad80d0c69992e7992083f967733aa9c.zip
accounts/a/b/backends, core: chain maker homestead block set to 0
The chain maker and the simulated backend now run with a homestead phase beginning at block 0 (i.e. there's no frontier). This commit also fixes up #2388
Diffstat (limited to 'accounts/abi/bind')
-rw-r--r--accounts/abi/bind/backends/simulated.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/accounts/abi/bind/backends/simulated.go b/accounts/abi/bind/backends/simulated.go
index 43d490988..213a4f1a7 100644
--- a/accounts/abi/bind/backends/simulated.go
+++ b/accounts/abi/bind/backends/simulated.go
@@ -27,11 +27,10 @@ import (
"github.com/ethereum/go-ethereum/core/vm"
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/params"
)
// Default chain configuration which sets homestead phase at block 0 (i.e. no frontier)
-var chainConfig = &core.ChainConfig{HomesteadBlock: params.MainNetHomesteadBlock}
+var chainConfig = &core.ChainConfig{HomesteadBlock: big.NewInt(0)}
// This nil assignment ensures compile time that SimulatedBackend implements bind.ContractBackend.
var _ bind.ContractBackend = (*SimulatedBackend)(nil)