sdk: remove outdated comment on vaa payload size limit (#2546)

This commit is contained in:
Nikhil Suri 2023-03-24 12:34:02 -07:00 committed by GitHub
parent 50a5977baf
commit 081f1997a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -409,9 +409,6 @@ const (
// UnmarshalBody deserializes the binary representation of a VAA's "BODY" properties
// The BODY fields are common among multiple types of VAA - v1, v2 (BatchVAA), etc
//
// WARNING: UnmarshallBody will truncate payloads at 1000 bytes, this is done mainly to avoid denial of service
// - If you need to access the full payload, consider parsing VAA from Bytes instead of Unmarshal
func UnmarshalBody(data []byte, reader *bytes.Reader, v *VAA) (*VAA, error) {
unixSeconds := uint32(0)
if err := binary.Read(reader, binary.BigEndian, &unixSeconds); err != nil {