sui icon indicating copy to clipboard operation
sui copied to clipboard

[sui move] add testing function for destroying a supply

Open sblackshear opened this issue 3 years ago • 1 comments

Good suggestion from @kklas

sblackshear avatar Nov 18 '22 02:11 sblackshear

Use case - writing a unit test for AMM Pool https://github.com/kunalabs-io/sui-smart-contracts/blob/master/amm/move/sources/amm.move#L85. Without destroy_supply_for_testing you can only do test_scenario tests.

kklas avatar Nov 18 '22 12:11 kklas