Skip to content

Commit 57cdbae

Browse files
author
Darioush Jalali
authored
all: remove trailing whitespace (#27741)
1 parent df54435 commit 57cdbae

File tree

3 files changed

+28
-28
lines changed

3 files changed

+28
-28
lines changed

accounts/abi/bind/template.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ var (
325325
if err != nil {
326326
return *outstruct, err
327327
}
328-
{{range $i, $t := .Normalized.Outputs}}
328+
{{range $i, $t := .Normalized.Outputs}}
329329
outstruct.{{.Name}} = *abi.ConvertType(out[{{$i}}], new({{bindtype .Type $structs}})).(*{{bindtype .Type $structs}}){{end}}
330330
331331
return *outstruct, err
@@ -335,7 +335,7 @@ var (
335335
}
336336
{{range $i, $t := .Normalized.Outputs}}
337337
out{{$i}} := *abi.ConvertType(out[{{$i}}], new({{bindtype .Type $structs}})).(*{{bindtype .Type $structs}}){{end}}
338-
338+
339339
return {{range $i, $t := .Normalized.Outputs}}out{{$i}}, {{end}} err
340340
{{end}}
341341
}
@@ -378,7 +378,7 @@ var (
378378
}
379379
{{end}}
380380
381-
{{if .Fallback}}
381+
{{if .Fallback}}
382382
// Fallback is a paid mutator transaction binding the contract fallback function.
383383
//
384384
// Solidity: {{.Fallback.Original.String}}
@@ -392,16 +392,16 @@ var (
392392
func (_{{$contract.Type}} *{{$contract.Type}}Session) Fallback(calldata []byte) (*types.Transaction, error) {
393393
return _{{$contract.Type}}.Contract.Fallback(&_{{$contract.Type}}.TransactOpts, calldata)
394394
}
395-
395+
396396
// Fallback is a paid mutator transaction binding the contract fallback function.
397-
//
397+
//
398398
// Solidity: {{.Fallback.Original.String}}
399399
func (_{{$contract.Type}} *{{$contract.Type}}TransactorSession) Fallback(calldata []byte) (*types.Transaction, error) {
400400
return _{{$contract.Type}}.Contract.Fallback(&_{{$contract.Type}}.TransactOpts, calldata)
401401
}
402402
{{end}}
403403
404-
{{if .Receive}}
404+
{{if .Receive}}
405405
// Receive is a paid mutator transaction binding the contract receive function.
406406
//
407407
// Solidity: {{.Receive.Original.String}}
@@ -415,9 +415,9 @@ var (
415415
func (_{{$contract.Type}} *{{$contract.Type}}Session) Receive() (*types.Transaction, error) {
416416
return _{{$contract.Type}}.Contract.Receive(&_{{$contract.Type}}.TransactOpts)
417417
}
418-
418+
419419
// Receive is a paid mutator transaction binding the contract receive function.
420-
//
420+
//
421421
// Solidity: {{.Receive.Original.String}}
422422
func (_{{$contract.Type}} *{{$contract.Type}}TransactorSession) Receive() (*types.Transaction, error) {
423423
return _{{$contract.Type}}.Contract.Receive(&_{{$contract.Type}}.TransactOpts)

accounts/abi/error.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type Error struct {
3232
str string
3333

3434
// Sig contains the string signature according to the ABI spec.
35-
// e.g. error foo(uint32 a, int b) = "foo(uint32,int256)"
35+
// e.g. error foo(uint32 a, int b) = "foo(uint32,int256)"
3636
// Please note that "int" is substitute for its canonical representation "int256"
3737
Sig string
3838

core/vm/runtime/runtime_test.go

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -679,30 +679,30 @@ func TestColdAccountAccessCost(t *testing.T) {
679679
func TestRuntimeJSTracer(t *testing.T) {
680680
jsTracers := []string{
681681
`{enters: 0, exits: 0, enterGas: 0, gasUsed: 0, steps:0,
682-
step: function() { this.steps++},
683-
fault: function() {},
684-
result: function() {
685-
return [this.enters, this.exits,this.enterGas,this.gasUsed, this.steps].join(",")
686-
},
687-
enter: function(frame) {
688-
this.enters++;
682+
step: function() { this.steps++},
683+
fault: function() {},
684+
result: function() {
685+
return [this.enters, this.exits,this.enterGas,this.gasUsed, this.steps].join(",")
686+
},
687+
enter: function(frame) {
688+
this.enters++;
689689
this.enterGas = frame.getGas();
690-
},
691-
exit: function(res) {
692-
this.exits++;
690+
},
691+
exit: function(res) {
692+
this.exits++;
693693
this.gasUsed = res.getGasUsed();
694694
}}`,
695695
`{enters: 0, exits: 0, enterGas: 0, gasUsed: 0, steps:0,
696-
fault: function() {},
697-
result: function() {
698-
return [this.enters, this.exits,this.enterGas,this.gasUsed, this.steps].join(",")
699-
},
700-
enter: function(frame) {
701-
this.enters++;
696+
fault: function() {},
697+
result: function() {
698+
return [this.enters, this.exits,this.enterGas,this.gasUsed, this.steps].join(",")
699+
},
700+
enter: function(frame) {
701+
this.enters++;
702702
this.enterGas = frame.getGas();
703-
},
704-
exit: function(res) {
705-
this.exits++;
703+
},
704+
exit: function(res) {
705+
this.exits++;
706706
this.gasUsed = res.getGasUsed();
707707
}}`}
708708
tests := []struct {

0 commit comments

Comments
 (0)