2

I already have a running erc20 smart contract using ink. I want to add mint and burn functions. Can anyone point me to the right direction, e.g., sample code, etc.

2

1 Answer 1

3

In terms of ink! you could take a look at the OpenBrush reference implementation for PSP-22 implementation. This is a standard akin to ERC-20, but for pallet-contracts and ink!.

There is an implementation of this standard in the OpenBrush project here.

Documentation on the mint and burn functionality can be found here:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.