Skip to content

refactor(warp): relax payload length check#145

Closed
johnletey wants to merge 1 commit intobcp-innovations:mainfrom
noble-assets:john/144
Closed

refactor(warp): relax payload length check#145
johnletey wants to merge 1 commit intobcp-innovations:mainfrom
noble-assets:john/144

Conversation

@johnletey
Copy link
Copy Markdown
Collaborator

Closes #144

mbreithecker
mbreithecker previously approved these changes Jan 22, 2026
Comment thread x/warp/types/payload.go
return WarpPayload{}, errors.New("payload is invalid")
}

amount := big.NewInt(0).SetBytes(payload[32:])
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
amount := big.NewInt(0).SetBytes(payload[32:64])

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets limit the array to [32:64] so that every additional metadata is ignored

@mbreithecker
Copy link
Copy Markdown
Member

Implemented in #163

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Relax ParseWarpPayload Length Check

2 participants