Skip to content
Discussion options

You must be logged in to vote

In this case, you need to initialize AptosCoin for testing. In the real networks, genesis handles this.

Here's an example:

This code calls a helper function (defined in a different module), that sets up the coin, and accounts.
https://github.com/aptos-labs/aptos-core/blob/main/aptos-move/move-examples/marketplace/sources/coin_listing.move#L666-L674

This code here sets up the coin and the accounts associated
https://github.com/aptos-labs/aptos-core/blob/main/aptos-move/move-examples/marketplace/sources/test_utils.move#L20-L50

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dbrdz
Comment options

Answer selected by dbrdz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants