-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Simulate transactions by default to set gas automatically #2047
Changes from all commits
f432c0c
323fac3
47d55bd
e959478
7e9ceb4
2dea467
fb5fe99
f36f749
7e8feec
76a16ab
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package utils | ||
|
||
import ( | ||
"net/http" | ||
) | ||
|
||
// WriteErrorResponse prepares and writes a HTTP error | ||
// given a status code and an error message. | ||
func WriteErrorResponse(w *http.ResponseWriter, status int, msg string) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lets do stuff like this in separate PR's in the future. Theres probably other places it can be used, but its harder to reason about as its not the focus of this PR. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK |
||
(*w).WriteHeader(status) | ||
(*w).Write([]byte(msg)) | ||
} |
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.
Lets test success with sufficient, manually specified gas as well?
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.
ACKd