Skip to content

Commit

Permalink
fix: Bump resource payload size static validation to 2MB
Browse files Browse the repository at this point in the history
  • Loading branch information
Eengineer1 committed Nov 25, 2024
1 parent 150ca17 commit 00fa58a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/resource/types/tx_msg_create_resource_payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (msg MsgCreateResourcePayload) Validate() error {
validation.Field(&msg.Version, validation.Length(1, 64)),
validation.Field(&msg.ResourceType, validation.Required, validation.Length(1, 64)),
validation.Field(&msg.AlsoKnownAs, validation.Each(ValidAlternativeURI())),
validation.Field(&msg.Data, validation.Required, validation.Length(1, 200*1024)), // 200KB
validation.Field(&msg.Data, validation.Required, validation.Length(1, 2*1024*1024)), // 2MB
)
}

Expand Down

0 comments on commit 00fa58a

Please sign in to comment.