mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 20:26:41 +00:00
fix bug
This commit is contained in:
parent
617419df6c
commit
6cf978c80f
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ type field struct {
|
||||||
func structFields(typ reflect.Type) ([]field, error) {
|
func structFields(typ reflect.Type) ([]field, error) {
|
||||||
// Convert fields to rlpstruct.Field.
|
// Convert fields to rlpstruct.Field.
|
||||||
n := typ.NumField()
|
n := typ.NumField()
|
||||||
allStructFields := make([]rlpstruct.Field, n)
|
allStructFields := make([]rlpstruct.Field, 0, n)
|
||||||
for i := 0; i < n; i++ {
|
for i := 0; i < n; i++ {
|
||||||
rf := typ.Field(i)
|
rf := typ.Field(i)
|
||||||
allStructFields = append(allStructFields, rlpstruct.Field{
|
allStructFields = append(allStructFields, rlpstruct.Field{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue