Skip to content
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

Question: Mint.py example #32

Open
writexavier opened this issue Jun 2, 2021 · 1 comment
Open

Question: Mint.py example #32

writexavier opened this issue Jun 2, 2021 · 1 comment

Comments

@writexavier
Copy link

In the mint.py example, the remove_native_token method is ran on minting_receiver. In this example, shouldn't the native token be added to minting_receiver instead removed from it?

https://github.com/non-fungible-waveforms/automint/blob/main/examples/mint.py:93

for token in TOKENS:        
   token_id = f'{policy_id}.{token}'
   cust_receiver.remove_native_token(token_id, 1)       
   minting_receiver.remove_native_token(token_id, 1)
@creativequotient
Copy link
Owner

You're right. It should be add_native_token instead. Doing this would burn instead of mint tokens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants