You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat!: RulesHooks.CanCreateContract() accepts and returns gas (#28)
* refactor!: `RulesHooks.CanCreateContract()` via `defer`
`TestCanCreateContract` is unchanged and merely moved to the appropriate file.
* feat!: `RulesHooks.CanCreateContract()` accepts and returns gas
* chore: move `TestCanCreateContract` to original file
Simplifies code review
* chore: pacify linter
* refactor!: revert to non-deferred call (not at start)
iftime.Unix(int64(r.timestamp), 0).UTC().Day() !=int(time.Tuesday) { //nolint:gosec // G115 timestamp won't overflow int64 for millions of years so this is someone else's problem
110
-
returnerrors.New("uh oh")
110
+
// Consumes all remaining gas.
111
+
return0, errors.New("uh oh")
111
112
}
112
-
returnnil
113
+
returngas, nil
113
114
}
114
115
115
116
// This example demonstrates how the rest of this file would be used from a
0 commit comments