Closed JoeruCodes closed 1 month ago
This function should create fungible_asset in the coin_conversion_table and may resolve this issue the only problem is that, I can't do it in my smart contract as it requires aptos_framework (0x1) as a signer...
Calling this function in the init_module function in the aptos_coin module should virtually solve this problem
If this is for test, can you see https://github.com/aptos-labs/aptos-core/pull/12028 ?
you can all ensure_initialized_with_fa_metadata_for_test
before test your own code.
I see thank you
π Bug
According to the documentation it says that for migration reasons all coins automatically have a paired_metadata counterpart, but AptosCoin type doesnt seem to have one when 0x1::coin::paired_metadata is called.
https://aptos.dev/en/build/smart-contracts/fungible-asset
To reproduce
Code snippet to reproduce
Stack trace/error message
Expected Behavior
The assert shouldn't fail and instead of being empty, the option should have the paired metadata of the AptosCoin.
System information
Please complete the following information: