diff options
author | Jeff Prestes <jeffprestes@gmail.com> | 2018-08-15 15:15:42 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-08-15 15:15:42 +0800 |
commit | 212bba47ff13812ddabb642da463e58cda4ff20f (patch) | |
tree | 229ddaf6591d031b782e692fb75ce6bc35dd225d /accounts/abi/bind/util_test.go | |
parent | b52bb31b767a3e31266e6138e24f7226ebbd8882 (diff) | |
download | dexon-212bba47ff13812ddabb642da463e58cda4ff20f.tar dexon-212bba47ff13812ddabb642da463e58cda4ff20f.tar.gz dexon-212bba47ff13812ddabb642da463e58cda4ff20f.tar.bz2 dexon-212bba47ff13812ddabb642da463e58cda4ff20f.tar.lz dexon-212bba47ff13812ddabb642da463e58cda4ff20f.tar.xz dexon-212bba47ff13812ddabb642da463e58cda4ff20f.tar.zst dexon-212bba47ff13812ddabb642da463e58cda4ff20f.zip |
backends: configurable gas limit to allow testing large contracts (#17358)
* backends: increase gaslimit in order to allow tests of large contracts
* backends: increase gaslimit in order to allow tests of large contracts
* backends: increase gaslimit in order to allow tests of large contracts
Diffstat (limited to 'accounts/abi/bind/util_test.go')
-rw-r--r-- | accounts/abi/bind/util_test.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/accounts/abi/bind/util_test.go b/accounts/abi/bind/util_test.go index 49e6dc813..8f4092971 100644 --- a/accounts/abi/bind/util_test.go +++ b/accounts/abi/bind/util_test.go @@ -53,9 +53,11 @@ var waitDeployedTests = map[string]struct { func TestWaitDeployed(t *testing.T) { for name, test := range waitDeployedTests { - backend := backends.NewSimulatedBackend(core.GenesisAlloc{ - crypto.PubkeyToAddress(testKey.PublicKey): {Balance: big.NewInt(10000000000)}, - }) + backend := backends.NewSimulatedBackend( + core.GenesisAlloc{ + crypto.PubkeyToAddress(testKey.PublicKey): {Balance: big.NewInt(10000000000)}, + }, 10000000, + ) // Create the transaction. tx := types.NewContractCreation(0, big.NewInt(0), test.gas, big.NewInt(1), common.FromHex(test.code)) |