-
Notifications
You must be signed in to change notification settings - Fork 20.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
backends: increase gaslimit in order to allow tests of large contracts #17358
backends: increase gaslimit in order to allow tests of large contracts #17358
Conversation
accounts/abi/bind/bind_test.go
Outdated
@@ -229,7 +229,7 @@ var bindTests = []struct { | |||
// Generate a new random account and a funded simulator | |||
key, _ := crypto.GenerateKey() | |||
auth := bind.NewKeyedTransactor(key) | |||
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}) | |||
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, uint64(10000000)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need the uint64
casts. Constant in Go have infinite precision and are cast to the correct type during compilation.
The changes requested were applied. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks
…hereum#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
No description provided.