mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
accounts/abi: fix redundant statement
Signed-off-by: VoR0220 <rj@erisindustries.com>
This commit is contained in:
parent
1ec212eeba
commit
2b152e7669
1 changed files with 1 additions and 5 deletions
|
|
@ -136,12 +136,8 @@ func toGoSlice(i int, t Argument, output []byte) (interface{}, error) {
|
||||||
}
|
}
|
||||||
//slice is there for a fixed amount of times
|
//slice is there for a fixed amount of times
|
||||||
slice = output[index : index+size*32]
|
slice = output[index : index+size*32]
|
||||||
|
|
||||||
if size*32 > len(slice) {
|
|
||||||
return nil, fmt.Errorf("abi: cannot marshal in to go slice: insufficient size output %d require %d", len(output), offset+32+size*32)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for i := 0; i < size; i++ {
|
for i := 0; i < size; i++ {
|
||||||
var (
|
var (
|
||||||
inter interface{} // interface type
|
inter interface{} // interface type
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue