You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the instantiate msg's label is validated, the error it returns is thrown away and instead a "label is required" is thrown.
This is confusing for the contract author, since they provided a label, but an invalid one, with no indication of what is wrong with it. This is the case for Instantiate, Instantiate2 and StoreAndInstantiate.
I think the error from ValidateLabel should be wrapped / returned instead.
When the instantiate msg's label is validated, the error it returns is thrown away and instead a "label is required" is thrown.
This is confusing for the contract author, since they provided a label, but an invalid one, with no indication of what is wrong with it. This is the case for
Instantiate
,Instantiate2
andStoreAndInstantiate
.I think the error from
ValidateLabel
should be wrapped / returned instead.Original issue
The text was updated successfully, but these errors were encountered: