coinv1 is_account_registered
changes
#272
LawsonGraham
started this conversation in
General
Replies: 3 comments 2 replies
-
seems this was caught earlier in code review but it was somehow ignored aptos-labs/aptos-core@d671bb8#r143155278 |
Beta Was this translation helpful? Give feedback.
1 reply
-
@LawsonGraham Hi, thanks for flagging out. For your test rn, the quick fix is to compile your aptos cli from main branch. After release new CLI, you don't have to create the pairing. |
Beta Was this translation helpful? Give feedback.
1 reply
-
a work around is to enable the said feature flag features::change_feature_flags_for_testing(aptos_framework, vector[features::get_coin_to_fungible_asset_migration_feature()], vector[]);
let (burn_cap, mint_cap) = aptos_coin::initialize_for_test(aptos_framework);
coin::destroy_burn_cap(burn_cap);
coin::destroy_mint_cap(mint_cap); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am seeing that unit tests which previously passed now are failing, and I believe I've traced this issue to here: aptos-labs/aptos-core@d671bb8#diff-8b0c87833e9d2dfab0fa028e93c4571213a9d059584ac8f1b71b41fd8d53803cL747
We depend on the mainnet branch, and I see that this breaking change was made to now abort rather than return false here... is this intended? and if so how should I modify code like this:
to actually work then? my issue is coming from an external dependency...
Follow up:
I see that it errors given the AptosCoin store hasn't been created yet, however when I try to create this in my tests with
aptos_coin::initialize_for_test
I get the following error:which seems to be coming from the FA migration being in progress... is there an easier way to get around this? else it feels like I'm kind of stuck here
Beta Was this translation helpful? Give feedback.
All reactions