|
|
|
@ -325,7 +325,7 @@ var ( |
|
|
|
|
if err != nil { |
|
|
|
|
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}} |
|
|
|
|
|
|
|
|
|
return *outstruct, err |
|
|
|
@ -335,7 +335,7 @@ var ( |
|
|
|
|
} |
|
|
|
|
{{range $i, $t := .Normalized.Outputs}} |
|
|
|
|
out{{$i}} := *abi.ConvertType(out[{{$i}}], new({{bindtype .Type $structs}})).(*{{bindtype .Type $structs}}){{end}} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return {{range $i, $t := .Normalized.Outputs}}out{{$i}}, {{end}} err |
|
|
|
|
{{end}} |
|
|
|
|
} |
|
|
|
@ -378,7 +378,7 @@ var ( |
|
|
|
|
} |
|
|
|
|
{{end}} |
|
|
|
|
|
|
|
|
|
{{if .Fallback}}
|
|
|
|
|
{{if .Fallback}} |
|
|
|
|
// Fallback is a paid mutator transaction binding the contract fallback function.
|
|
|
|
|
//
|
|
|
|
|
// Solidity: {{.Fallback.Original.String}}
|
|
|
|
@ -392,16 +392,16 @@ var ( |
|
|
|
|
func (_{{$contract.Type}} *{{$contract.Type}}Session) Fallback(calldata []byte) (*types.Transaction, error) { |
|
|
|
|
return _{{$contract.Type}}.Contract.Fallback(&_{{$contract.Type}}.TransactOpts, calldata) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Fallback is a paid mutator transaction binding the contract fallback function.
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// Solidity: {{.Fallback.Original.String}}
|
|
|
|
|
func (_{{$contract.Type}} *{{$contract.Type}}TransactorSession) Fallback(calldata []byte) (*types.Transaction, error) { |
|
|
|
|
return _{{$contract.Type}}.Contract.Fallback(&_{{$contract.Type}}.TransactOpts, calldata) |
|
|
|
|
} |
|
|
|
|
{{end}} |
|
|
|
|
|
|
|
|
|
{{if .Receive}}
|
|
|
|
|
{{if .Receive}} |
|
|
|
|
// Receive is a paid mutator transaction binding the contract receive function.
|
|
|
|
|
//
|
|
|
|
|
// Solidity: {{.Receive.Original.String}}
|
|
|
|
@ -415,9 +415,9 @@ var ( |
|
|
|
|
func (_{{$contract.Type}} *{{$contract.Type}}Session) Receive() (*types.Transaction, error) { |
|
|
|
|
return _{{$contract.Type}}.Contract.Receive(&_{{$contract.Type}}.TransactOpts) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Receive is a paid mutator transaction binding the contract receive function.
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// Solidity: {{.Receive.Original.String}}
|
|
|
|
|
func (_{{$contract.Type}} *{{$contract.Type}}TransactorSession) Receive() (*types.Transaction, error) { |
|
|
|
|
return _{{$contract.Type}}.Contract.Receive(&_{{$contract.Type}}.TransactOpts) |
|
|
|
|