mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-25 03:04:13 +03:00
19 lines
290 B
Plaintext
19 lines
290 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
input_files: inputs/add.in
|
|
*/
|
|
|
|
record Token {
|
|
// The token owner.
|
|
owner: address,
|
|
// The Aleo balance (in gates).
|
|
gates: u64,
|
|
// The token amount.
|
|
amount: u64,
|
|
}
|
|
|
|
@program
|
|
function main(a: u8, b:u8) -> u8 {
|
|
return a + b;
|
|
} |