File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ func (msg MsgInstantiateContract) ValidateBasic() error {
104104 }
105105
106106 if err := ValidateLabel (msg .Label ); err != nil {
107- return errorsmod .Wrap (sdkerrors . ErrInvalidRequest , "label is required " )
107+ return errorsmod .Wrap (err , "label" )
108108 }
109109
110110 if ! msg .Funds .IsValid () {
@@ -365,7 +365,7 @@ func (msg MsgInstantiateContract2) ValidateBasic() error {
365365 }
366366
367367 if err := ValidateLabel (msg .Label ); err != nil {
368- return errorsmod .Wrap (sdkerrors . ErrInvalidRequest , "label is required " )
368+ return errorsmod .Wrap (err , "label" )
369369 }
370370
371371 if ! msg .Funds .IsValid () {
@@ -584,7 +584,7 @@ func (msg MsgStoreAndInstantiateContract) ValidateBasic() error {
584584 }
585585
586586 if err := ValidateLabel (msg .Label ); err != nil {
587- return errorsmod .Wrap (sdkerrors . ErrInvalidRequest , "label is required " )
587+ return errorsmod .Wrap (err , "label" )
588588 }
589589
590590 if ! msg .Funds .IsValid () {
You can’t perform that action at this time.
0 commit comments