-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update main.sw #6546
Update main.sw #6546
Conversation
Hey @belamirkorkmaz, thanks for the contribution. Can we get a better name and description for the PR? |
@@ -1,5 +1,3 @@ | |||
contract; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably keep this one in place.
let asset_id = AssetId::default(); | ||
assert(msg_asset_id() == asset_id); | ||
assert(msg_amount() > 0); | ||
assert(msg_asset_id() == BASE_ASSET, "Invalid asset ID for withdrawal"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assert does not take multiple params.
Considering that this is probably an AI generated spam pr, closing it. |
Description
Checklist
Breaking*
orNew Feature
labels where relevant.