mirror of
https://github.com/AleoHQ/leo.git
synced 2024-11-28 02:33:18 +03:00
Mint function executes
This commit is contained in:
parent
3e780dd42b
commit
0570a421f0
@ -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;
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user