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
Copy file name to clipboardExpand all lines: accounts/abi/bind/precompilebind/precompile_contract_template.go
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ const (
52
52
{{- if .Contract.AllowList}}
53
53
// This contract also uses AllowList precompile.
54
54
// You should also increase gas costs of functions that read from AllowList storage.
55
-
{{- end}}}
55
+
{{- end}}
56
56
{{- range .Contract.Funcs}}
57
57
{{.Normalized.Name}}GasCost uint64 = 0 {{if not .Original.IsConstant | and $contract.AllowList}} + allowlist.ReadAllowListGasCost {{end}} // SET A GAS COST HERE
58
58
{{- end}}
@@ -136,7 +136,7 @@ func Set{{.Contract.Type}}AllowListStatus(stateDB contract.StateDB, address comm
136
136
137
137
{{range .Contract.Funcs}}
138
138
{{if len .Normalized.Inputs | lt 1}}
139
-
// Unpack{{capitalise .Normalized.Name}}Input attempts to unpack [input] into the arguments for the {{capitalise .Normalized.Name}}Input{}
139
+
// Unpack{{capitalise .Normalized.Name}}Input attempts to unpack [input] as {{capitalise .Normalized.Name}}Input
140
140
// assumes that [input] does not include selector (omits first 4 func signature bytes)
0 commit comments