mirror of
https://github.com/AleoHQ/leo.git
synced 2024-08-16 18:30:37 +03:00
Add failing test
This commit is contained in:
parent
ccea68a5be
commit
52ea596ed2
@ -32,6 +32,20 @@ program test.aleo {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
transition add_new_liquidity_token2 () {
|
||||
return then finalize();
|
||||
}
|
||||
|
||||
finalize add_new_liquidity_token2() {
|
||||
let try_get_token: TokenInfo = Mapping::get_or_use(
|
||||
token_name_to_info,
|
||||
0field,
|
||||
TokenInfo { id: 0u64 }
|
||||
);
|
||||
try_get_token = (try_get_token.id == 0u64) ? TokenInfo { id: 10u64 } : try_get_token;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user