mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
Update type.go
This commit is contained in:
parent
12067d66f9
commit
4cd9af3c3b
1 changed files with 4 additions and 8 deletions
|
|
@ -252,15 +252,11 @@ func (t Type) GetType() reflect.Type {
|
|||
case FixedBytesTy:
|
||||
return reflect.ArrayOf(t.Size, reflect.TypeFor[byte]())
|
||||
case BytesTy:
|
||||
return reflect.SliceOf(reflect.TypeFor[byte]())
|
||||
case HashTy:
|
||||
// hashtype currently not used
|
||||
return reflect.ArrayOf(32, reflect.TypeFor[byte]())
|
||||
case FixedPointTy:
|
||||
// fixedpoint type currently not used
|
||||
return reflect.ArrayOf(32, reflect.TypeFor[byte]())
|
||||
return reflect.TypeFor[[]byte]()
|
||||
case HashTy, FixedPointTy: // currently not used
|
||||
return reflect.TypeFor[[32]byte]()
|
||||
case FunctionTy:
|
||||
return reflect.ArrayOf(24, reflect.TypeFor[byte]())
|
||||
return reflect.TypeFor[[24]byte]()
|
||||
default:
|
||||
panic("Invalid type")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue