new()function to return the created badge along with the component.
stock_candymethod to require the owner's badge when calling it. You do this by adding this macro on the line before the method's definition:
resim, is specified in the same manner as a
Bucket.) Try it with both
0,[badge_address]. You will see that having the badge address is not sufficient. You actually have to provide a quantity of least one.
claimmethod with the
authmacro making it a snap to write: