diff options
Diffstat (limited to 'contracts/chequebook/gencode.go')
-rw-r--r-- | contracts/chequebook/gencode.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/contracts/chequebook/gencode.go b/contracts/chequebook/gencode.go index faa927279..45f6d68f3 100644 --- a/contracts/chequebook/gencode.go +++ b/contracts/chequebook/gencode.go @@ -33,15 +33,14 @@ import ( ) var ( - testKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291") - testAccount = core.GenesisAccount{ - Address: crypto.PubkeyToAddress(testKey.PublicKey), - Balance: big.NewInt(500000000000), + testKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291") + testAlloc = core.GenesisAlloc{ + crypto.PubkeyToAddress(testKey.PublicKey): {Balance: big.NewInt(500000000000)}, } ) func main() { - backend := backends.NewSimulatedBackend(testAccount) + backend := backends.NewSimulatedBackend(testAlloc) auth := bind.NewKeyedTransactor(testKey) // Deploy the contract, get the code. |