diff --git a/blockchain/Block Record Profile.go b/blockchain/Block Record Profile.go index 260e200..ecac278 100644 --- a/blockchain/Block Record Profile.go +++ b/blockchain/Block Record Profile.go @@ -55,7 +55,7 @@ func encodeBlockRecordProfile(fields []BlockRecordProfile) (recordsRaw []BlockRe } for n := range fields { - if len(fields[n].Data) > math.MaxUint32 { + if uint64(len(fields[n].Data)) > math.MaxUint32 { return nil, errors.New("exceeding max field size") }