mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
fix bug
This commit is contained in:
parent
4c524e6b1d
commit
77ef9beb64
2 changed files with 3 additions and 3 deletions
|
|
@ -132,7 +132,7 @@ var (
|
|||
{{- if .Structured}}
|
||||
outstruct := new({{.Normalized.Name}}Output)
|
||||
if err != nil {
|
||||
return outstruct, nil
|
||||
return nil, err
|
||||
}
|
||||
{{- range $i, $t := .Normalized.Outputs}}
|
||||
{{- if ispointertype .Type}}
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ func (dB *DB) UnpackGetNamedStatParams(data []byte) (*GetNamedStatParamsOutput,
|
|||
out, err := dB.abi.Unpack("getNamedStatParams", data)
|
||||
outstruct := new(GetNamedStatParamsOutput)
|
||||
if err != nil {
|
||||
return outstruct, nil
|
||||
return nil, err
|
||||
}
|
||||
outstruct.Gets = abi.ConvertType(out[0], new(big.Int)).(*big.Int)
|
||||
outstruct.Inserts = abi.ConvertType(out[1], new(big.Int)).(*big.Int)
|
||||
|
|
@ -171,7 +171,7 @@ func (dB *DB) UnpackGetStatParams(data []byte) (*GetStatParamsOutput, error) {
|
|||
out, err := dB.abi.Unpack("getStatParams", data)
|
||||
outstruct := new(GetStatParamsOutput)
|
||||
if err != nil {
|
||||
return outstruct, nil
|
||||
return nil, err
|
||||
}
|
||||
outstruct.Arg0 = abi.ConvertType(out[0], new(big.Int)).(*big.Int)
|
||||
outstruct.Arg1 = abi.ConvertType(out[1], new(big.Int)).(*big.Int)
|
||||
|
|
|
|||
Loading…
Reference in a new issue