dove
dove copied to clipboard
Named addresses not working with Dove run 1.6.0-86817ac
Hello!
Using TaoHe, consider the following file, and place it to scripts/
:
script {
use TaoHe::Errors;
fun dummy_1() {
assert(true, Errors::ownable_not_owned());
}
}
It results the following error message while running dove run -v "dummy_1()"
:
error[E03002]: unbound module
┌─ /home/ville/projects/taohe/scripts/dummy.move:17:9
│
17 │ use TaoHe::Errors;
│ ^^^^^^^^^^^^^ Invalid 'use'. Unbound module: 'TaoHe::Errors'
error[E03002]: unbound module
┌─ /home/ville/projects/taohe/scripts/dummy.move:20:22
│
20 │ assert(true, Errors::ownable_not_owned());
│ ^^^^^^ Unbound module alias 'Errors'
...while this works fine (also you can use the upstream dummy()
to verify this):
script {
fun dummy_2() {
assert(true, 123);
}
}
TaoHe
namespace (and even TaoHe::Errors
) is used multiple times in sources/
, and is compiling fine. This problem (or some variation of it) seems to occur with dove test
too.