You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having issues with trying to run test cases for a simple aptos coin I made, I dont want to use fungible asset for now.
When I run aptos move test, I get this:
Running Move unit tests
[debug] "Restaked Token initialized successfully
"
[ FAIL ] 0x89a3d491dc76466ed4900860d0cbf201ce5b3389ef59fa71f324d8cd4fdb32c2::token_test::test_restaked_token_flow
Test failures:
Failures in 0x89a3d491dc76466ed4900860d0cbf201ce5b3389ef59fa71f324d8cd4fdb32c2::token_test:
┌── test_restaked_token_flow ──────
│ error[E11001]: test failure
│ ┌─ /Users/{}/.move/https___github_com_aptos-labs_aptos-framework_git_mainnet/aptos-framework/sources/coin.move:320:9
│ │
│ 320 │ assert!(exists<CoinConversionMap>(@aptos_framework), error::not_found(ECOIN_CONVERSION_MAP_NOT_FOUND));
│ │ ^^^^^^ Test was not expected to error, but it aborted with code 393243 originating in the module 0000000000000000000000000000000000000000000000000000000000000001::coin rooted here
│ ·
│ 372 │ public(friend) fun ensure_paired_metadata<CoinType>(): Object<Metadata> acquires CoinConversionMap, CoinInfo {
│ │ ---------------------- In this function in 0x1::coin
│
│
│ stack trace
│ coin::withdraw(/Users/{}/.move/https___github_com_aptos-labs_aptos-framework_git_mainnet/aptos-framework/sources/coin.move:1140)
│ coin::transfer(/Users/{}/.move/https___github_com_aptos-labs_aptos-framework_git_mainnet/aptos-framework/sources/coin.move:1119)
│ restaked_token::transfer(/Users/{}/Programming/Github/aptos-liquid-restaking/sources/restaked_token.move:94)
│ token_test::test_restaked_token_flow(/Users/{}/Programming/Github/aptos-liquid-restaking/tests/token.test.move:32)
│
└──────────────────
Test result: FAILED. Total tests: 1; passed: 0; failed: 1
{
"Error": "Move unit tests failed"
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Discord user ID
No response
Describe your question in detail.
I am having issues with trying to run test cases for a simple aptos coin I made, I dont want to use fungible asset for now.
When I run
aptos move test
, I get this:The test code is :
the contract is:
What error, if any, are you getting?
No response
What have you tried or looked at? Or how can we reproduce the error?
No response
Which operating system are you using?
macOS
Which SDK or tool are you using? (if any)
Aptos CLI
Describe your environment or tooling in detail
No response
Beta Was this translation helpful? Give feedback.
All reactions