leo/tests/compiler/records/declaration.leo
2022-08-04 20:00:40 -07:00

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;
}