Set GasAdjustment in CLIContext when handling HTTP requests

This is to address @alexanderbez's comments
This commit is contained in:
Alessio Treglia
2018-08-31 19:04:42 +02:00
parent 599923fb99
commit 1370ca611b
10 changed files with 80 additions and 16 deletions
+4
View File
@@ -159,5 +159,9 @@ func (ctx CLIContext) WithUseLedger(useLedger bool) CLIContext {
// WithCertifier - return a copy of the context with an updated Certifier
func (ctx CLIContext) WithCertifier(certifier tmlite.Certifier) CLIContext {
ctx.Certifier = certifier
// WithGasAdjustment returns a copy of the context with an updated GasAdjustment flag.
func (ctx CLIContext) WithGasAdjustment(adjustment float64) CLIContext {
ctx.GasAdjustment = adjustment
return ctx
}