all: remove trailing whitespace (#27741)
This commit is contained in:
parent
df544350bc
commit
57cdbaef30
@ -325,7 +325,7 @@ var (
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return *outstruct, err
|
return *outstruct, err
|
||||||
}
|
}
|
||||||
{{range $i, $t := .Normalized.Outputs}}
|
{{range $i, $t := .Normalized.Outputs}}
|
||||||
outstruct.{{.Name}} = *abi.ConvertType(out[{{$i}}], new({{bindtype .Type $structs}})).(*{{bindtype .Type $structs}}){{end}}
|
outstruct.{{.Name}} = *abi.ConvertType(out[{{$i}}], new({{bindtype .Type $structs}})).(*{{bindtype .Type $structs}}){{end}}
|
||||||
|
|
||||||
return *outstruct, err
|
return *outstruct, err
|
||||||
@ -335,7 +335,7 @@ var (
|
|||||||
}
|
}
|
||||||
{{range $i, $t := .Normalized.Outputs}}
|
{{range $i, $t := .Normalized.Outputs}}
|
||||||
out{{$i}} := *abi.ConvertType(out[{{$i}}], new({{bindtype .Type $structs}})).(*{{bindtype .Type $structs}}){{end}}
|
out{{$i}} := *abi.ConvertType(out[{{$i}}], new({{bindtype .Type $structs}})).(*{{bindtype .Type $structs}}){{end}}
|
||||||
|
|
||||||
return {{range $i, $t := .Normalized.Outputs}}out{{$i}}, {{end}} err
|
return {{range $i, $t := .Normalized.Outputs}}out{{$i}}, {{end}} err
|
||||||
{{end}}
|
{{end}}
|
||||||
}
|
}
|
||||||
@ -378,7 +378,7 @@ var (
|
|||||||
}
|
}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{if .Fallback}}
|
{{if .Fallback}}
|
||||||
// Fallback is a paid mutator transaction binding the contract fallback function.
|
// Fallback is a paid mutator transaction binding the contract fallback function.
|
||||||
//
|
//
|
||||||
// Solidity: {{.Fallback.Original.String}}
|
// Solidity: {{.Fallback.Original.String}}
|
||||||
@ -392,16 +392,16 @@ var (
|
|||||||
func (_{{$contract.Type}} *{{$contract.Type}}Session) Fallback(calldata []byte) (*types.Transaction, error) {
|
func (_{{$contract.Type}} *{{$contract.Type}}Session) Fallback(calldata []byte) (*types.Transaction, error) {
|
||||||
return _{{$contract.Type}}.Contract.Fallback(&_{{$contract.Type}}.TransactOpts, calldata)
|
return _{{$contract.Type}}.Contract.Fallback(&_{{$contract.Type}}.TransactOpts, calldata)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fallback is a paid mutator transaction binding the contract fallback function.
|
// Fallback is a paid mutator transaction binding the contract fallback function.
|
||||||
//
|
//
|
||||||
// Solidity: {{.Fallback.Original.String}}
|
// Solidity: {{.Fallback.Original.String}}
|
||||||
func (_{{$contract.Type}} *{{$contract.Type}}TransactorSession) Fallback(calldata []byte) (*types.Transaction, error) {
|
func (_{{$contract.Type}} *{{$contract.Type}}TransactorSession) Fallback(calldata []byte) (*types.Transaction, error) {
|
||||||
return _{{$contract.Type}}.Contract.Fallback(&_{{$contract.Type}}.TransactOpts, calldata)
|
return _{{$contract.Type}}.Contract.Fallback(&_{{$contract.Type}}.TransactOpts, calldata)
|
||||||
}
|
}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{if .Receive}}
|
{{if .Receive}}
|
||||||
// Receive is a paid mutator transaction binding the contract receive function.
|
// Receive is a paid mutator transaction binding the contract receive function.
|
||||||
//
|
//
|
||||||
// Solidity: {{.Receive.Original.String}}
|
// Solidity: {{.Receive.Original.String}}
|
||||||
@ -415,9 +415,9 @@ var (
|
|||||||
func (_{{$contract.Type}} *{{$contract.Type}}Session) Receive() (*types.Transaction, error) {
|
func (_{{$contract.Type}} *{{$contract.Type}}Session) Receive() (*types.Transaction, error) {
|
||||||
return _{{$contract.Type}}.Contract.Receive(&_{{$contract.Type}}.TransactOpts)
|
return _{{$contract.Type}}.Contract.Receive(&_{{$contract.Type}}.TransactOpts)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Receive is a paid mutator transaction binding the contract receive function.
|
// Receive is a paid mutator transaction binding the contract receive function.
|
||||||
//
|
//
|
||||||
// Solidity: {{.Receive.Original.String}}
|
// Solidity: {{.Receive.Original.String}}
|
||||||
func (_{{$contract.Type}} *{{$contract.Type}}TransactorSession) Receive() (*types.Transaction, error) {
|
func (_{{$contract.Type}} *{{$contract.Type}}TransactorSession) Receive() (*types.Transaction, error) {
|
||||||
return _{{$contract.Type}}.Contract.Receive(&_{{$contract.Type}}.TransactOpts)
|
return _{{$contract.Type}}.Contract.Receive(&_{{$contract.Type}}.TransactOpts)
|
||||||
|
@ -32,7 +32,7 @@ type Error struct {
|
|||||||
str string
|
str string
|
||||||
|
|
||||||
// Sig contains the string signature according to the ABI spec.
|
// Sig contains the string signature according to the ABI spec.
|
||||||
// e.g. error foo(uint32 a, int b) = "foo(uint32,int256)"
|
// e.g. error foo(uint32 a, int b) = "foo(uint32,int256)"
|
||||||
// Please note that "int" is substitute for its canonical representation "int256"
|
// Please note that "int" is substitute for its canonical representation "int256"
|
||||||
Sig string
|
Sig string
|
||||||
|
|
||||||
|
@ -679,30 +679,30 @@ func TestColdAccountAccessCost(t *testing.T) {
|
|||||||
func TestRuntimeJSTracer(t *testing.T) {
|
func TestRuntimeJSTracer(t *testing.T) {
|
||||||
jsTracers := []string{
|
jsTracers := []string{
|
||||||
`{enters: 0, exits: 0, enterGas: 0, gasUsed: 0, steps:0,
|
`{enters: 0, exits: 0, enterGas: 0, gasUsed: 0, steps:0,
|
||||||
step: function() { this.steps++},
|
step: function() { this.steps++},
|
||||||
fault: function() {},
|
fault: function() {},
|
||||||
result: function() {
|
result: function() {
|
||||||
return [this.enters, this.exits,this.enterGas,this.gasUsed, this.steps].join(",")
|
return [this.enters, this.exits,this.enterGas,this.gasUsed, this.steps].join(",")
|
||||||
},
|
},
|
||||||
enter: function(frame) {
|
enter: function(frame) {
|
||||||
this.enters++;
|
this.enters++;
|
||||||
this.enterGas = frame.getGas();
|
this.enterGas = frame.getGas();
|
||||||
},
|
},
|
||||||
exit: function(res) {
|
exit: function(res) {
|
||||||
this.exits++;
|
this.exits++;
|
||||||
this.gasUsed = res.getGasUsed();
|
this.gasUsed = res.getGasUsed();
|
||||||
}}`,
|
}}`,
|
||||||
`{enters: 0, exits: 0, enterGas: 0, gasUsed: 0, steps:0,
|
`{enters: 0, exits: 0, enterGas: 0, gasUsed: 0, steps:0,
|
||||||
fault: function() {},
|
fault: function() {},
|
||||||
result: function() {
|
result: function() {
|
||||||
return [this.enters, this.exits,this.enterGas,this.gasUsed, this.steps].join(",")
|
return [this.enters, this.exits,this.enterGas,this.gasUsed, this.steps].join(",")
|
||||||
},
|
},
|
||||||
enter: function(frame) {
|
enter: function(frame) {
|
||||||
this.enters++;
|
this.enters++;
|
||||||
this.enterGas = frame.getGas();
|
this.enterGas = frame.getGas();
|
||||||
},
|
},
|
||||||
exit: function(res) {
|
exit: function(res) {
|
||||||
this.exits++;
|
this.exits++;
|
||||||
this.gasUsed = res.getGasUsed();
|
this.gasUsed = res.getGasUsed();
|
||||||
}}`}
|
}}`}
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user