Mint function executes

This commit is contained in:
Pranav Gaddamadugu 2022-07-20 13:09:43 -07:00
parent 3e780dd42b
commit 0570a421f0
2 changed files with 3 additions and 10 deletions

View File

@ -1,7 +1,4 @@
// The program input for token/src/main.leo
[main]
a: Record = Record {
owner: aleo1d5hg2z3ma00382pngntdp68e74zv54jdxy249qhaujhks9c72yrs33ddah,
gates: 5u64,
token_amount: 100u64
};
[mint]
owner: address = aleo1ht2a9q0gsd38j0se4t9lsfulxgqrens2vgzgry3pkvs93xrrzu8s892zn7;
amount: u64 = 100u64;

View File

@ -7,10 +7,6 @@ record Token {
amount: u64,
}
function main(t: Token) -> u64 {
return t.amount + t.amount;
}
function mint(owner: address, amount: u64) -> Token {
return Token {
owner: owner,